How to Play Tic-Tac-Toe — Perfect Strategy, Forks & Why It Always Draws
The first strategy game everyone learns — and the one almost nobody plays perfectly.
Play Tic-Tac-Toe NowWhat Is Tic-Tac-Toe?
Tic-Tac-Toe (also called Noughts and Crosses or Xs and Os) is a two-player game on a 3×3 grid. Players alternate placing their mark — X or O — in empty squares. The first player to get three marks in a row (horizontally, vertically, or diagonally) wins. If all nine squares are filled with no winner, it's a draw.
Tic-Tac-Toe holds a unique place in game theory: it's one of the simplest games that's been completely "solved." With optimal play from both sides, every game ends in a draw. This makes it a perfect introduction to strategic thinking — the concepts of forcing moves, controlling space, and creating forks apply to chess, Go, and every strategy game you'll ever play.
The Board & Basic Rules
The board has nine positions, which strategists label by their type:
- Center: The single middle square. It participates in four possible winning lines (both diagonals, the middle row, the middle column).
- Corners: The four corner squares. Each participates in three winning lines (one row, one column, one diagonal).
- Edges: The four remaining squares (top-center, left-center, right-center, bottom-center). Each participates in only two winning lines.
X always goes first. This gives X a slight structural advantage — not enough to guarantee a win against perfect defense, but enough to control the early game.
Winning lines: There are exactly eight possible winning lines: three rows, three columns, and two diagonals. Every strategic decision comes down to controlling, threatening, or blocking these lines.
Perfect Play as X (First Player)
If you're X, here is the strategy that guarantees you either win or draw — never lose:
Move 1: Take the center. The center is the strongest opening. It participates in four winning lines and maximizes your options for every subsequent move.
Move 2 (after O responds):
- If O takes a corner: Take the opposite corner. This sets up a potential fork (explained in the next section).
- If O takes an edge: You have a winning strategy. Take any corner adjacent to the edge O chose, then create a fork on your next move. Against an edge response, X can always force a win with correct play.
Move 3 onwards: Look for a fork opportunity (two separate threats simultaneously). If none exists, look for a win, then block O's win, then take the best available strategic square (corners over edges).
Critical point: The center opening doesn't guarantee a win — but it guarantees that any mistake by O becomes fatal. Against perfect play from O, the center opening draws. Against imperfect play, it wins.
Perfect Play as O (Second Player)
Playing O is purely defensive — your goal is to survive to a draw. Here's how:
If X opens center (the most common and strongest opening):
- Take a corner. This is the only response that guarantees a draw. Taking an edge against a center opening can be exploited by a skilled X player into a forced win.
- After taking a corner, play defensively: block every winning threat X creates, and avoid creating positions where X can fork you.
If X opens corner:
- Take the center. This is mandatory. If O doesn't take the center when X opens corner, X can create an unstoppable fork.
- After taking the center, prefer edges that block X's diagonal threats.
If X opens edge:
- Take the center. Again, the center is the universal defensive anchor. From here, play responsively.
The pattern: the center is the key defensive square. If X doesn't take it, O must. A game where neither player takes the center is strategically bizarre and almost always results in a draw by confusion rather than skill.
Forks: The Winning Weapon
A fork is a position where you have two separate threats to win — two different lines each needing only one more mark. Your opponent can only block one threat per turn, so a fork guarantees a win.
Example: X has marks in the top-left corner and center, and it's X's turn. If X places in the bottom-right corner, X now threatens the main diagonal and is one move away on another line. If both threats are live, O can only block one — X wins on the other.
How to create forks:
- Control two intersecting winning lines with one mark each. Your next move should complete both threats simultaneously.
- Opposite corners are the classic fork setup. If X has two opposite corners and the center, nearly any continuation creates a fork.
- Look for positions where one square participates in two of your partially-filled lines.
How to prevent forks:
- Don't let your opponent control two intersecting lines unchallenged.
- Force your opponent to play defensively with immediate threats. If they're busy blocking your single-line threats, they can't set up forks.
- If you see your opponent has two corners and the center, you're likely already in fork territory. The time to prevent a fork is before it's set up.
Why Perfect Play Always Draws
Tic-Tac-Toe was one of the first games solved by computer analysis. The result: with perfect play by both players, the game is always a draw. Here's the intuitive explanation for why:
- X has the first-move advantage and can always at least draw.
- O, by responding to X's opening with the correct defensive move (corner vs. center, center vs. corner/edge), can always prevent X from creating a fork.
- Without a fork, X can never create two simultaneous threats. Every single threat can be blocked by O.
- With both players blocking and counter-blocking optimally, the board fills with no winner. Draw.
This means two things for your play: if you're X, you can never lose (unless you make a mistake). If you're O, you can always draw (unless you make a mistake). The game is entirely about exploiting your opponent's errors.
This "solved" status makes Tic-Tac-Toe a fascinating case study in game theory. The same analytical approach — mapping every possible move, evaluating outcomes, identifying dominant strategies — applies to far more complex games. Tic-Tac-Toe is just small enough to solve completely by hand.
The Priority System
When it's your turn, evaluate moves in this order. Take the first option that applies:
- Win: If you can complete three in a row, do it. Obvious, but sometimes overlooked in the heat of planning something fancy.
- Block: If your opponent can win on their next move, block them. Missing a block is the most common mistake at any level.
- Fork: If you can create a fork (two simultaneous threats), take it. This guarantees a win.
- Block opponent's fork: If your opponent is about to create a fork, prevent it. Either take the forking square yourself, or force them to block a threat of yours that doesn't result in them completing their fork.
- Center: If the center is available, take it.
- Opposite corner: If your opponent holds a corner and the diagonally opposite corner is empty, take it.
- Any corner: Corners are better than edges.
- Any edge: Last resort.
Follow this hierarchy and you will never lose a game of Tic-Tac-Toe. Against opponents who don't follow it, you will win frequently.
Playing Against AI
Our Tic-Tac-Toe engine uses the minimax algorithm — it evaluates every possible game state and always chooses the optimal move. This means:
- You cannot beat it. The best possible outcome against our AI is a draw. If you consistently draw against it, congratulations — you're playing perfectly.
- Use it for practice. When you lose against the AI, study the board. Where did the fork come from? Which move let the AI set it up? Learning to draw consistently against a perfect opponent sharpens your play against humans.
- Try different openings. Playing as X, open center and observe how the AI responds. Then try corner openings. Notice how the AI's defensive strategy changes.
- Play as O. Second-player defense is harder than first-player offense. Practice surviving against the AI's optimal X strategy.
The AI is not your opponent — it's your sparring partner. Every loss is a lesson about a pattern you didn't see.
Beyond 3×3: Where Next?
Once you've mastered 3×3, the ideas you've learned — controlling key squares, creating forks, responding to threats — transfer directly to more complex games:
- Connect Four: Same concept of alignment-based winning, but on a 7×6 grid with gravity. Far more complex, but forks and double threats are still the winning strategy.
- Gomoku / Five in a Row: Place stones on a grid to get five in a row. Played on a 15×15 or 19×19 board, the strategic depth is enormous.
- Ultimate Tic-Tac-Toe: A 3×3 grid of 3×3 boards. Win a small board to claim that square on the big board. Win three big-board squares in a row to win the game. Much harder to solve and genuinely deep.
- Chess and Go: The ultimate expressions of the same principles — spatial control, forced sequences, and strategic foresight — that Tic-Tac-Toe introduces.
Tic-Tac-Toe is the entry point, not the destination. Master it, and you've built a foundation for a lifetime of strategy games.
Put these strategies into practice with our free Tic-Tac-Toe puzzle.