Tic tac toe

Play a retro version of tic-tac-toe (noughts and crosses, tres en raya) against the computer or with two players.

PlayerPlayer 1 ()0

Tie0

ComputerPlayer 2 ()0

1P

2P

About Tic Tac Toe

Tic-tac-toe is a three-by-three grid, two symbols and a solved game: with correct play from both sides it always ends in a draw. That is not a flaw. It is why the game survives — it is short enough to play a hundred times and simple enough that both players can see exactly where they went wrong.

Its ancestor is Roman, a game called terni lapilli played on the same grid with three counters each. The version with nine free squares is the one that ended up in every school exercise book.

How to play

  1. Players take turns placing their mark on an empty square. X goes first.
  2. The first player to get three of their marks in a row — horizontally, vertically or diagonally — wins.
  3. If all nine squares are filled with no line made, the game is a draw.

Controls

Click or tap
Place your mark on any empty square.

Tips

Frequently asked questions

Can you always win at tic-tac-toe?

No. With correct play from both sides every game is a draw. Wins only come from an opponent's mistake.

Is it better to go first?

Yes — X has more forcing options and can only lose by error. But a correct O still draws every time.

What is a fork in tic-tac-toe?

One move that creates two separate ways to make three in a row. Your opponent can only block one of them.

How many possible games are there?

255,168 distinct games, which reduce to a much smaller number of meaningfully different positions once symmetry is taken into account.