Back to the blog

Games

How to win at tic-tac-toe, and never lose.

Tic-tac-toe is a draw when both play well, but most people do not. The order of moves that never loses, the best first move, and how to set a fork.

By 5 min read

A game of tic-tac-toe: X in the top left corner, O in the centre, and the free squares each marked Draws, with the score beside the board

Nobody can force a win at tic-tac-toe against a player who makes no mistakes: the game is a draw. But people do make mistakes, and nearly all of them are the same few. Here is how to never lose, and how to give the other player the most chances to go wrong.

Check these, in this order, every move.

A simple list of checks plays perfectly. It comes from Allen Newell and Herbert Simon's 1972 program, and Kevin Crowley and Robert Siegler used it to study how children learn the game. Go down the list and play the first one that applies.

Win: if you have two in a line and the third square is free, take it. Block: if the other player has two in a line, take the third. Fork: make a move that gives you two lines of two at once, so they can only block one. Block a fork: if they could fork next move, stop it, best by making two in a row that forces them to answer somewhere harmless. Then take the centre, then the corner opposite theirs, then any corner, then an edge.

The best first move is a corner.

Every first move draws with perfect play, so the best first move is the one that leaves the other player the most ways to go wrong. A corner does: of the eight squares left, only the centre holds the draw. Any other answer loses to a player who knows how to fork.

The centre is safe too, and the other player must then answer in a corner; an edge loses. An edge is the weakest start: four answers hold the draw, the two corners beside it, the centre and the opposite edge.

The game's hints show this for any board: press Hints and every free square is marked with what it leads to.

Win with a fork.

A fork is a move that makes two lines of two at once. The other player can block one, and you finish the other. Almost every won game of tic-tac-toe is won by a fork.

The classic one: start in a corner. If the other player answers on an edge, take the centre, then the corner that makes two lines, and they cannot stop both. If they answer in the opposite corner to yours, take a third corner.

When you go second, take the centre.

Against a corner, the centre is the only square that holds. Then, if the first player takes the opposite corner, answer on an edge, not a corner: a corner there lets them fork.

Against the centre, take a corner. Against an edge, take a corner beside it, the centre or the opposite edge.

Practise against a computer that explains.

KeepSimp's tic-tac-toe has four levels. Easy and Medium make the mistakes people make, such as missing a fork; Hard slips now and then; Unbeatable never loses. After each game, the review steps through every move, finds the one that decided it and outlines the squares that would have held.

Further reading

Topics: how to win tic tac toe · tic tac toe strategy · tic tac toe tricks · best first move tic tac toe · tic tac toe fork · never lose tic tac toe

A little less theory. A little more doing.

Try it on your own terms, with a free browser tool.

Try the tool