How to Play Tic-Tac-Toe

How to play tic tac toe in one sentence: two players take turns marking a 3×3 grid, and the first to get three marks in a line wins. That is really all there is to the rules, but knowing a little more about how the game unfolds makes it far more fun, and it helps when you are teaching someone new.

Play now

The goal

Be the first player to place three of your marks in a straight line: across a row, down a column, or along one of the two diagonals. If the grid fills up and nobody has a line, the game is a draw, sometimes called a cat's game.

The board and the players

The board is a square divided into nine smaller squares, three by three. One player uses X, the other uses O. On paper you draw two vertical and two horizontal lines; in our game the grid is ready on screen and you simply tap a square.

There are eight possible winning lines in total: three rows, three columns and two diagonals. The center square belongs to four of them, each corner to three, and each edge square to just two. That is why the center and corners are the strongest squares.

Taking turns

Because X moves first, X places five marks in a full game and O places four. Moving first is a small advantage, so in friendly play it is fair to take turns being X.

  1. X always moves first. In our game, X is you when playing the computer.
  2. On your turn, place one mark in any empty square.
  3. Marks never move and cannot be erased by the opponent.
  4. Players alternate until someone makes a line of three or all nine squares are filled.

Winning and drawing

The game ends the moment a line of three is completed. In our version the winning line is highlighted and the result screen appears. If every square is filled without a line, the game shows Draw.

With perfect play from both sides, tic tac toe always ends in a draw. Wins come from mistakes: a missed block or a fork, a single move that creates two threats at the same time.

Basic strategy

The tic-tac-toe strategy guide shows exact move sequences for both sides.

  • On every turn, first check if you can win, then check if you must block.
  • As X, start in a corner or the center.
  • As O, answer a corner with the center, and the center with a corner.
  • Look for forks: two threats at once cannot both be blocked.

Common mistakes

  • Focusing on your own line and missing the opponent's two in a row.
  • Opening on an edge as X, which gives away your best chances.
  • As O, replying to a corner opening anywhere except the center.
  • Thinking the game is pure luck. It is not: the same good moves work every time.

A game with a long history

Games of getting three in a row are very old, and versions with movable pieces were played long before paper was cheap. The pencil-and-paper game became a classroom and kitchen-table favorite because it needs nothing but a scrap of paper. Its small size also made it one of the first games ever played by computers.

Playing on PlayJester

Choose Easy for a gentle opponent, Medium for a fair test, or Hard for an opponent that never loses. In 2 players mode two people share the same screen. Undo is free, and a hint shows the best move after a short video.

Tic tac toe terms

  • X and O: the two players' marks. X goes first.
  • Line: three squares in a row, column or diagonal.
  • Block: placing your mark to stop an opponent's line.
  • Fork: a move that creates two winning threats at once.
  • Cat's game: a draw.
  • Noughts and crosses: the British name for the game.

FAQ

Who goes first in tic tac toe?
X always goes first. In our game you are X against the computer; in 2 players mode the first player is X.
Can you win tic tac toe every time?
No. A careful opponent can always force a draw. You can, however, make sure you never lose.
Does a diagonal line count?
Yes. Both diagonals count, as do all three rows and all three columns.
What happens if the board fills up?
If all nine squares are taken and nobody has three in a row, the game is a draw.

More games

Privacy settings

Choose which optional cookies and similar technologies we may use. You can change this at any time with the “Privacy settings” link at the bottom of every page.

Strictly necessaryAlways on

Keep your saved games, sound and language settings and this choice on your device. Always on, because the site cannot work properly without them.

Anonymous statistics that show us which games and pages are used, so we can improve them.

Lets Google and its partners use cookies to personalise ads and measure them. If this is off, you may still see ads, but they won't be based on your interests. Turning it off also opts you out of the “sale” or “sharing” of your personal information.