← Nesim Apps

Tic-Tac-Toe Strategy: How to Never Lose

By Nesim Razon, independent Android developer

Tic-Tac-Toe is a solved game: with correct play by both sides it always ends in a draw. That means you can learn a few rules and never lose. Here are the rules and the strategy, which you can practice against the computer on Hard.

The rules

Two players take turns placing X and O on a 3x3 grid. The first player to get three of their marks in a row, horizontally, vertically or diagonally, wins. If the grid fills with no winner, it is a draw.

If you go first

If you go second

Always, on every move

Frequently asked questions

Can Tic-Tac-Toe be won against perfect play?

No. If both players play perfectly the game ends in a draw. You win only when your opponent makes a mistake.

Who should go first?

Going first is an advantage because you can set up a fork, but it never guarantees a win against perfect defense.

How hard is the computer?

In the app, Easy is relaxed, Medium blocks your moves but can be tricked, and Hard plays perfectly and never loses. Can you draw?

More guides