Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Tic-tac-toe

Play tic-tac-toe (noughts and crosses) on 3x3, 4x4 or 5x5 against the computer or a friend. On hard, the 3x3 computer never loses.

How to play

  1. X moves first, then O, taking turns to mark one empty square.
  2. On 3 × 3 the first to get three in a row (across, down or diagonally) wins. On 4 × 4 and 5 × 5 you need four in a row.
  3. If the board fills up with no line, the game is a draw.
  4. Play against the computer (easy, medium or hard) or with a friend on the same device. The score line counts wins and draws until you change the board size.

Keyboard and touch

Arrow keysMove around the board
Enter or SpacePlay in the square
TabLeave the board for the buttons
TapPlay in the square

Tips

  • On 3 × 3, start in a corner or the centre.
  • Make a fork: one move that threatens two lines at once cannot be blocked.
  • Always block a line of two before starting your own plan.
  • Against the hard computer on 3 × 3 a draw is the best anyone can do: it plays perfectly.

About this game

Tic-tac-toe, also called noughts and crosses, is one of the oldest pencil games. On 3 × 3 the hard computer searches every possible game; our tests try every reply you could make, from both sides, and it never loses. On the bigger boards it looks a few moves ahead and counts open lines. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product