|
For the ultimate boredom. You have the crosses (X), the computer has the circles (O). Place a cross somewhere on an empty field
in the 3x3 square. The player who first occupies all three fields in a column, row or diagonal, has won. There are two modes for the computer:
stupid and smart. In stupid mode the computer sets at random, in smart mode the computer does a full search for the best option. If both
players play in the best possible way, it will be a draw, therefore you cannot win in smart mode. Because of the full search, the script might
be slow on older computers.
|
|