Tic-Tac-Toe Strategy: How to Never Lose

Tic-tac-toe takes a minute to learn, but there is a real strategy behind it. With perfect play from both sides, every game ends in a draw. That means you can learn to never lose, and to win whenever the other player slips. This guide explains the few ideas that make that possible: the value of each square, forks, and the right replies. On this site you can test them against the computer, whose Hard level plays perfectly, or with a friend.

Why perfect play is a draw

The board has only nine squares and eight lines: three across, three down, and two diagonals. That is small enough that every possible game has been worked out, and the result is that neither player can force a win if the other plays correctly. So against a strong player the goal is not to win at all costs, but to avoid mistakes and punish theirs. A draw against the Hard level is a good result, because it never makes a mistake.

The best first move

Each square belongs to a different number of lines. The centre is on four lines, each corner on three, and each edge square on only two. If you move first, take a corner or the centre. A corner gives the other player the most chances to go wrong: if they reply anywhere except the centre, you can force a win. If you move second and the first mark is in a corner, you must take the centre. If the first mark is in the centre, take a corner. Never answer a centre opening with an edge square.

Forks: the move that wins

A fork is one move that makes two lines of two at the same time, each with its third square empty. The other player can block only one, so you win with the other. Almost every won game of tic-tac-toe is won by a fork. For example, with marks in the top-left and bottom-right corners, taking the bottom-left corner threatens both the left column and the bottom row, as long as the squares between are empty. Look for squares that sit on two of your half-built lines.

Blocks and forced moves

Check four things, in order, before every move. First, if you can complete a line, do it. Second, if the other player can complete a line next turn, block it. Third, if you can make a fork, make it. Fourth, if the other player could make a fork next turn, stop it. The best way is often to make a line of two of your own, which forces them to block instead, as long as their block does not give them a fork. If none of these applies, take the centre, then a corner, then an edge.

How to never lose

Follow that routine and you will not lose. One trap is worth knowing by heart: when you go second against a corner opening and take the centre, and the other player then takes the opposite corner, play an edge, not a corner. A corner there lets them fork you; an edge forces them to block. On this site the first move swaps every round, so you practise both sides. Start on Easy to see forks in action, move to Normal, which sometimes leaves room for a trap, and then try to hold Hard to a draw every time.

Puzzle games →