How to Play Tic Tac Toe
The definitive masterclass on rules, winning opening combinations, defensive counter-strategies, and artificial intelligence logic.
1. Basic Rules of Tic Tac Toe
Tic Tac Toe (also known as Noughts and Crosses or Xs and Os) is a two-player game played on a 3×3 square grid.
- Player X always makes the opening move of the match.
- Player O follows with the second move.
- Players take turns placing their designated symbol into any empty cell on the 9-square grid.
- Once placed, a symbol cannot be moved or replaced.
- The first player to align three consecutive symbols horizontally, vertically, or diagonally wins immediately.
- If all nine squares are filled without either player achieving three in a row, the game ends in a Draw (often called a Cat's Game).
2. The 8 Winning Combinations
There are precisely eight winning alignments on a standard 3×3 Tic Tac Toe board:
3 Horizontal Rows
Top row (1-2-3), Middle row (4-5-6), Bottom row (7-8-9).
3 Vertical Columns
Left column (1-4-7), Center column (2-5-8), Right column (3-6-9).
2 Diagonals
Top-left to bottom-right (1-5-9), Top-right to bottom-left (3-5-7).
3. Advanced Winning Strategies
Opening with a Corner (Optimal Move)
When playing first as X, placing your first mark in any corner square (1, 3, 7, or 9) maximizes your winning opportunities. This move immediately threatens multiple diagonals and edges. If your opponent fails to respond by claiming the center square (5), you can guarantee a winning fork on move 3.
Setting up a "Fork"
A fork is a scenario where a player creates two simultaneous winning threats with a single move. Because an opponent can only block one threat per turn, the other threat guarantees victory on the next round.
Defending as Player O (Second Player)
If the opening player takes a corner, you must take the center. If they take the center, you should take a corner. Never take an edge as your opening response to a corner, as it allows X to construct an unstoppable fork.
4. How the AI Opponent Calculates Moves
In Neon XO, our computer opponent uses different computational models depending on the difficulty you choose:
- Easy: Selects primarily random moves with low lookahead, giving casual players a fun, relaxed environment.
- Medium: Features tactical priority checking. It will seize immediate winning lines and block player winning threats with 85% probability, while mixing in balanced moves.
- Hard: Powered by the mathematical Minimax Decision Rule with depth weighting. It evaluates the entire decision tree down to every possible ending, ensuring it never makes an error. A human playing flawlessly will achieve a draw; any mistake leads to a bot victory followed by the Moye Moye audio reaction!
Ready to Put Strategy into Practice?
Challenge your friends or battle our unbeatable Hard AI right now in Neon XO.
Play Neon XO Now →