About Tic-Tac-Toe
Tic-tac-toe (noughts and crosses, three-in-a-row) is ancient — Roman variations have been found scratched into Forum pavement stones dating to 1 BC. With perfect play it's a forced draw, which is what the AI here does: it plays minimax, evaluating every possible move tree to optimal depth. You can't beat it. You can only force it into a draw.
How to play
- Click a cell
- Place your mark (X)
Tips
- You play X (first move). Open in a corner — it gives you the most winning lines.
- Against minimax, the only path to a draw is to never miss a fork or a block. The AI will punish a single mistake.
- Watch the center. After your corner-open, the AI will almost always grab center; your second move sets up the only forks that survive.