How to never lose at tic tac toe (and what happens when draws are taken away)

Updated

On this page

You never lose at tic tac toe by answering the opening correctly and then following a fixed priority list: win if you can, block if you must, and never let your opponent create two threats at once. Do that every move and the worst result you can get is a draw, because tic tac toe is a solved game and perfect play by both sides always ends level.

Is tic tac toe always a draw?

Between two players who make no mistakes, yes. Every opening move by X can be answered, so neither side can force a win. This has been checked across every possible game.

Real games are still won, because one player makes a bad reply early and the other knows how to punish it. Never losing means not making that reply.

Throughout this post the squares are numbered from the top left:

 1 | 2 | 3
---+---+---
 4 | 5 | 6
---+---+---
 7 | 8 | 9

Square 5 is the centre. Squares 1, 3, 7 and 9 are corners. Squares 2, 4, 6 and 8 are edges.

Why the centre and corners matter

There are eight lines on the board: three rows, three columns and two diagonals. Not every square sits on the same number of them.

  • The centre sits on four lines.
  • Each corner sits on three lines.
  • Each edge sits on two lines.

A square on more lines takes part in more threats and blocks more of your opponent’s. Edges are the weakest squares, and most losing moves are edge moves played at the wrong moment.

Forks: how tic tac toe games are actually won

A threat is two of your marks in a line with the third square empty. Your opponent can block one threat per turn. A fork is a move that creates two threats at the same time. They block one, you complete the other.

Almost every won game ends in a fork, because a single threat is simply blocked. The real game is creating forks for yourself and denying them to your opponent before they appear.

Here is what a fork looks like. X has just played square 7:

 X | . | O
---+---+---
 . | O | .
---+---+---
 X | . | X

X now threatens to complete the left column (needs square 4) and the bottom row (needs square 8). O can block only one. X wins next turn.

How to win tic tac toe as X

X moves first. Use that to give your opponent as many ways to go wrong as possible.

Open in a corner. After a corner opening, O has exactly one reply that holds the draw: the centre. Every other reply, edge or corner, loses against correct play.

The centre is also safe. After a centre opening, O must take a corner. Any edge reply loses. That is fewer traps than the corner opening sets, but it is still a perfectly sound first move.

The edge opening does not lose either, but it gives O the most comfortable choices of the three, so there is little reason to play it.

Punishing an edge reply to a corner

Say you open in square 1 and O answers on the edge at square 2. Take the centre:

 X | O | .
---+---+---
 . | X | .
---+---+---
 . | . | .

You now threaten the diagonal through 1, 5 and 9, so O is forced to block at square 9. Then play square 7:

 X | O | .
---+---+---
 . | X | .
---+---+---
 X | . | O

That is a fork. You threaten the left column (square 4) and the other diagonal (square 3). O cannot block both.

An edge reply to the centre loses the same way: X takes a corner, forces a block in the opposite corner, and then forks from a third corner.

How to never lose at tic tac toe as O

Playing second is about surviving the first two moves. After that, the priority list below keeps you safe.

If X opens in a corner, take the centre. This is the only reply that does not lose, and the one most people get wrong.

If X opens in the centre, take a corner. An edge reply loses, as shown above. A corner reply holds the draw.

If X opens on an edge, taking the centre is the simplest safe answer.

The opposite-corner trap

This catches players who already know to take the centre. X opens in a corner, O correctly takes the centre, and X takes the opposite corner:

 X | . | .
---+---+---
 . | O | .
---+---+---
 . | . | X

It looks natural for O to grab another corner. It loses. Say O plays square 3. That threatens the 3-5-7 diagonal, so X blocks at square 7, and the block is itself a fork: X now threatens the left column (square 4) and the bottom row (square 8).

 X | . | O
---+---+---
 . | O | .
---+---+---
 X | . | X

The correct move for O is an edge. Playing square 2, for example, makes a threat down the middle column. X has to block at square 8, and O is no longer facing a fork. Play continues to a draw.

There is a mirror-image version for O after a centre opening. If X plays the centre, O takes a corner, and X takes the corner opposite O’s, then O must take another corner. An edge reply there lets X block and fork in one move.

The priority list: tic tac toe strategy in eight rules

In 1972 Allen Newell and Herbert Simon published a simple rule set for tic tac toe. On each turn, take the first rule that applies:

  1. Win. If you have two in a line with the third square empty, complete it.
  2. Block. If your opponent has two in a line, take the third square.
  3. Fork. Make a move that creates two threats at once.
  4. Block a fork. If your opponent could fork next turn, stop it.
  5. Centre. Take the centre if it is free.
  6. Opposite corner. If your opponent holds a corner, take the one diagonally opposite.
  7. Empty corner. Take any free corner.
  8. Empty edge. Take any free edge.

The order matters. Winning beats blocking, and blocking beats forking, because a fork is worth nothing once their line is complete.

Rule 4 is the subtle one, and the opposite-corner trap is exactly where it gets tested. When your opponent has two possible fork squares, simply taking one of them often fails, because they take the other. The better way to block is to make a threat of your own that forces them to answer somewhere harmless, as long as their forced reply does not itself create a fork. That is why O plays an edge in the trap above: the edge makes a threat whose forced answer is safe, while the corner makes a threat whose forced answer is a fork.

Follow these eight rules on every move and you will not lose a game of tic tac toe. Against an opponent who also follows them, every game will be drawn.

What if a game couldn’t end in a draw?

Once both players know the rules above, tic tac toe stops being a contest. The outcome is decided before the first move.

overload is our attempt to keep the board and remove the guaranteed draw. It is a free tic tac toe variant on onedge, played in the browser against a bot or a friend.

The rules, briefly:

  • The board is the same 3x3 grid. Against the bot you play X and move first.
  • Instead of identical marks, each player has one each of the numbers 1 to 9, to spend over the whole match.
  • On your turn you pick an unspent number and place it on an empty square, or on a square holding a lower number. That bumps the lower number off the board for good, and the square is now yours.
  • Three in a row wins, judged on who holds each square now.
  • If neither player can move and nobody has a line, the match is not thrown away. It goes to whoever holds the highest-value line, adding up the numbers on their best line. If that ties, it falls back to total value held, then number of squares held, then who holds the centre.

A genuine draw needs all four of those measures to come out identical. The full rules are in the how to play overload guide.

Overload mid-match: your 8 in the top-left corner, the bot's 8 top-right and its 9 in the centre, with your numbers on the left and the bot's on the right above the board Overload keeps both hands visible all match, so you can count what the other side still holds before you place a number.

How often does classic tic tac toe draw, and how often does overload?

Instead of asserting that overload rarely draws, I ran the numbers. Both experiments below use the game’s own rules code, and neither involves human players, so treat them as a property of the rules and not as a claim about how people play.

Classic tic tac toe. Counting every legal game from the empty board gives 255,168 distinct move sequences: 131,184 won by X, 77,904 won by O and 46,080 drawn. If both players instead pick a uniformly random empty square each turn, the exact probabilities are X 58.49 percent, O 28.81 percent, draw 12.70 percent.

Overload. I simulated 20,000 matches per policy with the game’s own rules. Both sides use the same policy, and X moves first. The random policy chooses uniformly from every legal number/square pair. Each policy uses one seeded random stream: 20261111 for random, 20261112 for loose and 20261113 for tuned. The results can be reproduced by the repository’s scripts/analyze-overload.mjs.

Policy on both sidesX winsO winsDrawsSettled without three in a row
Random legal moves11,3708,6300482
Loose bot10,0309,9700471
Tuned bot4,18515,81502,071

Random play gave X 56.85 percent of wins and O 43.15 percent. In 482 matches (2.41 percent), neither side could move before making a line, so the tie-break cascade settled the game. Some of those positions still had unspent numbers: being unable to bump anything also ends a match. Counting only empty pools would miss those results.

With the tuned bot on both sides, 10.4 percent were settled by the cascade rather than a line. These are seeded computer experiments, not measurements of human players or proof that a draw is impossible. Two things stand out:

  • Do not assume the first move gives you an advantage. With both sides tuned, O won 79.1 percent in this run. Loose against loose was close to 50 to 50. The ruthless bot is deterministic, so two ruthless bots play one fixed game, and in that game O wins on its third move.
  • The player always holds X and moves first. Against the bot this means you are the one who has to commit a number first, while the bot answers with full sight of what you spent.

These are properties of the heuristics, not a proof that the second player wins overload with perfect play. I have not solved the full game, and I would not claim it is balanced either.

How a match is scored

Against the bot, a win scores 100 minus 5 for every number still unspent in the loser’s pool, then multiplied by the bot level: 0.7 for loose, 1 for tuned and 1.4 for ruthless. A draw scores 20 and a loss 0. Beating the tuned bot while it still holds three numbers gives 100 - 15 = 85. The same win on ruthless is 85 x 1.4 = 119. The score rises as the loser spends more of its numbers: the same tuned win with none left scores 100. An earlier win is still a win, but the formula gives it fewer points, so speed alone is not a scoring bonus.

What carries over from classic tic tac toe

Square values. The board has the same eight lines, so the centre still sits on four, corners on three and edges on two. The centre is still the most valuable square, so contesting it early still matters.

Forks. Two threats at once is still the strongest thing you can make. In the simulation above, most matches still ended with three in a row, including the bot matches.

Win before block. If you can complete a line this turn, do it. Nothing your opponent was threatening matters once the match is over.

What does not carry over

No square is permanent. In classic tic tac toe a block is forever. In overload a block is only as safe as the number you used. If your opponent still holds a higher number, your block can be taken back. A 9 on the board can never be bumped, but every lower number can, until the numbers that could take it have been spent.

Forks can be broken. A classic fork is final because the only answer is to block one empty square. In overload your opponent has another answer: bump the square the two threats share. A fork resting on a 3 is much weaker than one resting on a 7.

The opening book is gone. “Answer a corner with the centre” assumes the centre stays put. Here the centre changes hands whenever someone spends a bigger number on it, so there is no fixed list of losing replies to learn.

Your hand is part of the board. Both hands are visible at all times. A high number you have not spent threatens every square, and once it is spent it threatens nothing further. Counting your opponent’s remaining numbers matters as much as reading the grid.

More games that reward thinking a move ahead are on the strategy games page.

Frequently asked

How do you never lose at tic tac toe? Answer the opening correctly, then follow a fixed order every move: win if you can, block if you must, make a fork, stop their fork, then prefer the centre, the opposite corner, any corner, and finally an edge. Played consistently, that guarantees at least a draw.

Is tic tac toe always a draw? With perfect play by both sides, yes. Neither player can force a win. Real games are decided when one player makes a losing reply, most often by not taking the centre after a corner opening, or by taking an edge after a centre opening.

What is the best first move in tic tac toe? A corner. It leaves the second player only one reply that does not lose, the centre. The centre is also a safe opening, but it sets fewer traps. Neither move can force a win against an opponent who answers correctly.

Is there a tic tac toe with no draws? overload comes close. Every square can be taken back by a higher number, and a match with no three in a row is settled on line value, total value, squares held and the centre, in that order. A genuine draw needs all four to tie. In 20,000 simulated matches with random legal moves, none did.

Does classic tic tac toe strategy work in overload? Partly. The value of the centre and the power of forks carry over. The fixed opening replies do not, because no square is permanent, and you have to track your opponent’s unspent numbers as closely as the board.

Play overload