You can't win every game of tic tac toe: if your opponent makes no mistakes, the game ends in a draw. What you can do is never lose, and win every time the other player slips. All it takes is knowing which squares matter most, how to set up a fork, and which traps catch most players.
Why some squares are worth more than others
A 3×3 board has 8 winning lines: 3 rows, 3 columns and 2 diagonals. They don't pass through every square equally:
| Square | Winning lines through it | What it means for you |
|---|---|---|
| Center | 4 | The strongest square, for attack and defense at the same time |
| Corners | 3 each | Ideal for setting up a fork |
| Edges | 2 each | The weakest squares, especially early on |
In the examples below, the squares are numbered like a phone keypad: 1, 2, 3 across the top row, 4, 5, 6 in the middle and 7, 8, 9 along the bottom. Square 5 is the center, 1, 3, 7 and 9 are the corners, and 2, 4, 6 and 8 are the edges.
The decision order that never loses
This list comes from a tic tac toe program that Allen Newell and Herbert Simon described in 1972. On every turn, play the first move on the list that you can make:
- Win: if you have two in a row and the third square is empty, play there.
- Block: if your opponent has two in a row, take the third square.
- Fork: play where you create two threats at once.
- Block a fork: if your opponent can set up a fork, stop it. Often the best way is to make two in a row yourself, so they are forced to defend.
- Center: if it's free, take it.
- Opposite corner: if your opponent has a corner, take the one diagonally opposite.
- Empty corner.
- Empty edge.
The first two steps sound obvious, yet that's where most losses happen: a player focused on their own plan doesn't notice that the opponent already has two in a row. Ask two questions before every move: "Can I win right now?" and "Can they win on their next move?"
The first move: center or corner
If you go first, every opening move leads to a draw with perfect play. In practice, though, they're not equal, because they don't leave your opponent the same room for error:
- Corner: your opponent has exactly one reply that doesn't lose, the center. Anywhere else, you can force a win.
- Center: your opponent must answer with a corner. An edge reply loses.
- Edge: the weakest choice, because your opponent has four safe replies.
If you go second, remember one rule: answer a corner with the center, and answer the center with a corner. That alone keeps you out of most traps from the very first move.
The fork: how tic tac toe is won
Almost every win comes from a fork: a move that creates two lines, each with two of your marks and one empty square. Your opponent can only block one, so you win with the other.
Example: you have X on 1 and 5, and your opponent has O on 2 and 9. If you play 7, you threaten the left column (1-4-7) and the other diagonal (3-5-7) at the same time. Whichever square they block, you complete the other line.
To find forks, look for squares where two lines cross that already hold one of your marks and none of your opponent's. That's why the center and the corners are so useful: more lines pass through them.
Two traps that catch most players
The corner trap
You take the center (5) and your opponent answers on an edge, say 2. Play the corner next to their O, square 1. Now you threaten the diagonal 1-5-9, so they have to block on 9. Then play 7: you threaten both the column 1-4-7 and the diagonal 3-5-7, and you win on your next move.
The trap works because many people answer the center with an edge, which feels "safe." In fact, after a center opening an edge reply always loses against a player who knows what they're doing.
The three-corner trap
You start in a corner (1). If your opponent doesn't take the center, you already have a forced win. Say they take the opposite corner (9): play a third corner, square 3. You threaten 2, they block it, and 7 gives you a fork on 4 and 5.
How to defend when you go second
As the second player, your first goal is a draw. Beyond the rule "corner gets center, center gets corner," learn two positions where almost everyone goes wrong:
- They hold two opposite corners and you hold the center (X on 1 and 9, O on 5): play an edge, not a corner. A corner lets them set up a fork, while an edge forces them to defend.
- They hold the center and the corner opposite yours (X on 5 and 9, O on 1): play a corner, 3 or 7. Here an edge loses.
The two positions look alike but need opposite answers, so it's worth setting them up on a board a few times until you recognize them instantly.
Common mistakes
- Opening on an edge: it doesn't lose, but it gives your opponent the most safe replies.
- Only defending: if you just block lines without building threats of your own, your opponent plays at ease.
- Forgetting the diagonals: most "sudden" losses are a diagonal nobody noticed.
- A threat that helps your opponent: before you make two in a row to put on pressure, check where they will be forced to play. If that square gives them a fork, the pressure backfires.
Practice on Triliza.net
Theory sticks better after a few games. In our online tic tac toe you can play the computer at three levels. On Easy you can try out the traps, while on Hard the computer plays perfectly using the Minimax algorithm and never loses: if you always reach a draw there, you're playing without mistakes too. When 3×3 starts to feel small, try Super Tic Tac Toe, where your move decides where your opponent plays next, or Gomoku, where you need five in a row.
Frequently asked questions
Does the first player always win?
No. Tic tac toe is a "solved" game: if both players play correctly, every game ends in a draw. The first player simply gets more chances to punish a mistake. If you count all 255,168 possible games, the first player wins 131,184 of them, but most of those games contain errors.
What is the best first move?
The center or a corner. Both lead to a draw with perfect play, but a corner leaves your opponent only one correct reply, the center. An edge is the weakest choice.
What should I do if my opponent starts in the center?
Take a corner. If you answer on an edge, your opponent can spring the corner trap and win.
Curious where the game came from? Read the history of tic tac toe. Teaching a child? See our guide to tic tac toe for kids.
Sources: Tic-tac-toe (Wikipedia) · Jesper Juul, 255,168 ways of playing Tic Tac Toe