Tic Tac Toe: Play vs Computer or a Friend

Play tic tac toe online against the computer, from easy to unbeatable, or with a friend. Be X or O, keep score, and see the winning line.

Loading…

Take turns placing X and O on a 3 × 3 grid. Get three in a row (across, down or diagonally) to win; if the grid fills up first, it's a draw. Play against the computer on Easy (it plays randomly), Medium (it usually spots wins and blocks) or Unbeatable, which plays perfectly, so the best you can do is draw. Or choose 2 players and pass the device back and forth. You can be X, who goes first, or O. The score is kept across games, and the winning line lights up when someone gets three in a row. Tic tac toe (noughts and crosses in the UK and Australia) is a good first strategy game for children: it teaches looking for your own winning move first, then blocking your opponent's, and it shows how a game can be 'solved' so that perfect players always draw. It runs in your browser with nothing to install and no account, on a computer, tablet or phone.

Common use cases

  • Play a quick game with a child or a friend
  • Try to draw against the unbeatable computer
  • Teach strategy and thinking ahead
  • Settle a quick decision, best of three

How to use

  1. Choose an opponent: Easy, Medium, Unbeatable or 2 players.
  2. Choose whether you're X (first) or O.
  3. Tap a square to place your mark.
  4. Press New game to play again; the score carries on.

FAQ

Can you always win tic tac toe?

No. With perfect play from both sides, every game is a draw. You can only win if your opponent makes a mistake, which is why the Unbeatable level never loses.

What's the best first move?

A corner. It gives your opponent the most ways to go wrong: if they reply anywhere but the centre, you can force a win. The centre is the safest choice for the second player.

How many possible games are there?

255,168 different games, counting every order of moves until someone wins or the board fills. Far fewer are really different once you allow for rotations and reflections.