Tic-tac-toe
Three minutes to learn and a lifetime to draw. Worth knowing before you start that against anybody who is paying attention, this game is a draw every single time.
The rules
- The board is three squares by three, empty at the start.
- One player is X and the other O. X always goes first.
- Take turns claiming any empty square. A claimed square cannot be taken back or moved.
- Three of your marks in a straight line wins: along a row, down a column, or corner to corner.
- If all nine squares are filled and neither player has a line, the game is a draw.
How a game ends
- A line of three wins immediately.
- A full board with no line is a draw, and a draw is recorded as a draw rather than as a loss for anybody.
- A resignation or a missed deadline ends the game against the player who resigned or ran out of time.
Why it is always a draw
- Tic-tac-toe is small enough to be solved completely: every possible game has been worked out.
- With correct play by both sides the result is always a draw, so a win only happens when somebody makes a mistake.
- The bot here plays the game out perfectly and will never lose. Drawing with it is the best result available.
The seed decides who plays X and therefore who moves first, and the seed is published when the game ends, so it can be checked afterwards.