← Games

Game Hub Articles

All articles
Home › Articles
❌

How to never lose at Tic-Tac-Toe

By Noam · 26 November 2026 · 5 min read

Tic-Tac-Toe (noughts and crosses) is so small that every possible game can be checked, and the answer is known: if both players play well, the game is always a draw. That means you should never lose. It also means that when you play someone who doesn't know the rules below, you can often win.

The priority list

On every turn, go down this list and play the first move that applies:

  1. Win: if you have two in a line and the third square is empty, take it.
  2. Block: if your opponent has two in a line, take the third square.
  3. Fork: make a move that creates two lines of two at once. Your opponent can only block one.
  4. Block a fork: if your opponent could make a fork next turn, stop it, ideally by making two in a row yourself so they're forced to block you instead.
  5. Centre: take the middle if it's free.
  6. Opposite corner: if your opponent is in a corner, take the corner opposite.
  7. Any corner, then any edge.

Following this list exactly is enough to never lose a game. Computer programs that play perfect Tic-Tac-Toe use almost exactly these rules.

Why corners are strong

The centre is part of four lines, corners are part of three, and edges only two. So the centre is the best single square, but corners are where forks come from. Most winning traps start with a corner.

The corner trap (when you go first)

Start in a corner. If your opponent replies anywhere except the centre, you can almost always win. For example, if they play an edge, take another corner so you threaten a line, and after they block you'll usually be able to fork. Even when they take the centre, taking the opposite corner sets a few traps for beginners.

The mistake to avoid when you go second

If your opponent starts in a corner, take the centre. Any other reply can be beaten. And if they then take the opposite corner (so they have two corners on a diagonal with you in the middle), don't take a corner yourself: play an edge. Taking a corner here lets them fork. This one rule wins a surprising number of games for people who know it.

Why the game is a draw

There are only 9 squares, and once you remove games that are just rotations or mirror images, there are only a few hundred essentially different ways a game can go. That's small enough for people (and early computers) to check every one. In fact, one of the first computer games ever, OXO, was a Tic-Tac-Toe program written in 1952 on a Cambridge University computer.

Make it harder

Once Tic-Tac-Toe always ends in a draw for you, try a bigger cousin. Ultimate Tic-Tac-Toe is nine small boards inside one big board, and Five in a Row (Gomoku) uses a 15 by 15 grid where you need five in a line.

Practise

Tic-Tac-Toe on the Hub has a computer opponent and a two-player mode. Play the computer with the priority list next to you, and see if it can ever beat you.

▶ Play Tic-Tac-ToeAll games

More articles

🪩 Pinball tips: how to trap the ball, aim your shots and score moreStop flailing at the flippers. Learn to catch the ball, aim with the flipper, pass it between flippers and use nudges, plus a bit of pinball history.🐍 Snake strategy: how to get a really long snakeHug the walls, sweep in zig-zags and never trap yourself. Simple strategies for the classic Snake game, plus where Snake came from.🎳 Bowling tips and how bowling scoring really worksWhy strikes and spares are worth extra, how a 300 game works, and where to aim to knock down all ten pins.🧱 Brick-breaking games: the story of Breakout and how to clear every levelHow a 1976 arcade game built by two future Apple founders created a whole genre, and how to control the ball's angle to clear bricks faster.🟦 Falling-block puzzle tips: keep your stack flat and clear more linesFlat stacks, a well for the long piece, using Hold and Next, and staying calm at high speed. How to get better at falling-block puzzles like Block Drop.