How to play Tic Tac Toe

Three in a row on a three-by-three grid: quick to learn, and with perfect play on both sides it's always a draw.

The basics

  • Click any empty cell to place your mark.
  • In 1-player mode the AI plays whichever mark you did not pick under Play as.
  • Get three in a row, column, or diagonal to win.
  • Hard is perfect play — best you can do is a draw.
  • Coaching shows the top 3 cells each turn with their forced outcomes.

The rules

X moves first, and the players take turns marking one empty cell each. Three of your marks in a row, a column or a diagonal win the game. If the grid fills with no line of three, it's a draw.

Three in a row.
Three in a column.
Three on a diagonal.

Playing here

  • 1 Player plays the AI, with the mark you pick under Play as; as O, the AI opens. 2 Player is two people on one screen.
  • Undo move (against the AI) takes back your last mark and the AI's reply.
  • Difficulty: Easy marks any empty cell at random. Medium takes a win when it has one and blocks yours, and otherwise plays at random. Hard plays perfectly: it never loses, so a draw is the best anyone can do against it.
  • Coaching shows your three best cells and where each one leads if both players play perfectly from there: it forces a win, holds the draw, or loses. It's exact at every difficulty, and Play top move plays the first.

Tips

  • Open in a corner or the centre: they sit on the most lines.
  • Look for a fork, a move that makes two lines of two at once. Only one can be blocked.
  • Against Hard, play for the draw, and let the coach show you which cells keep it.
A fork: X, holding the top-left corner and the centre, takes the bottom-left corner and threatens two lines at once, down the left side and along the diagonal. O blocks one, and X completes the other.

Playing online

There's nothing for the host to set, and the first move passes to the other player with every rematch. Playing online covers rooms from start to finish.