The rules for playing HEXI are relative simple:

You and the computer alternate in coloring the edges of the hexagon. Your color is red, and the computer's is green.

You may choose to color just one edge or, in the "Allow more moves each time" mode, more edges each time.

The first one who builds a triangle with all three edges drawn by himself loses.