Tic-Tac-Toe

·

Play full screen

How to play

Tic-Tac-Toe (also called noughts and crosses, or XOX) is played on a grid drawn on a notebook page. Two players take turns putting their mark in an empty square.

  1. Get a line. On the classic 3 × 3 board the first player to get three marks in a row, across, down or diagonally, wins. On the 4 × 4 and 5 × 5 boards you need four in a row.
  2. Full board, no line: draw. If every square is filled and nobody has a line, the game is a draw.
  3. You are X, the opponent is O. Against the computer you always play X. With a friend on the same device, the bottom player is X and the top player is O.
  4. Who opens. Open Options to decide who makes the first move: X, O, or Take turns (the default). When taking turns, the side that did not open the last finished game opens the next one. If the computer opens, its first mark is already on the board when the game starts.

Tap an empty square to play. The winning line is drawn through the marks, and the last move glows. The score line under the buttons keeps a running count of X wins, draws and O wins, separately for games against the computer and games against a friend. Reset it from Options.

At the top, choose your Opponent. Against the Computer you can pick Easy, Medium or Hard. Hint marks the best square for the player to move, at full strength whatever the level. Undo takes back your move together with the computer’s answer, or one move against a friend, even from the end-of-game window.

Strategy

  • With perfect play 3 × 3 is always a draw. That is why the Hard computer can never be beaten on the small board, only held to a draw: in our tests it drew all 1,000 games against a perfect opponent. Play Easy or Medium if you want to win.
  • Medium can be forked. It always takes a win and always blocks a single threat, but it does not look far enough ahead to see a double threat coming. Open in a corner; when it takes the center, take the opposite corner. It likes corners more than edges, so it usually takes one of the two free corners, and then the last corner gives you two threats at once. It also slips about one move in eight.
  • Center or corner first. On 3 × 3 the center sits on four lines and each corner on three. An edge opening is the weakest. If your opponent opens in a corner, take the center; if they open in the center, take a corner, never an edge.
  • Count threats on the big boards. With four in a row on 5 × 5, three marks in a line with both ends open cannot be stopped. Build two-in-a-row shapes that can grow in two directions, and block your opponent’s open two before it becomes an open three.
  • 4 × 4 is the most drawish. Every line is a full row, column or diagonal, so a single enemy mark kills it. Wins only come from forks, so keep your marks on squares that share lines.

In our tests a perfect player beat Easy in 88% of games when opening and 57% when Easy opened, and beat Medium in 38% and 14% of games. Neither ever beat Hard.

For a bigger challenge of the same idea, play Ultimate Tic-Tac-Toe with nine boards in one, or line up five stones in Five in a Row.

If you enjoy Tic-Tac-Toe, try Toguz Korgool or Tombala next.

Frequently asked questions

Can I always win against the computer?

Not on Hard: on the 3 × 3 board it plays perfectly, so the best you can do is a draw. On Easy and Medium you can, and the fork described above works against Medium most of the time.

Why does the computer sometimes move first?

Because the first move is set to Take turns. After each finished game the opening side switches. Choose X in Options if you always want to open.

Does a bigger board change the rule?

Yes. On 4 × 4 and 5 × 5 you need four marks in a row instead of three. Three in a row does nothing there.

Is the score saved?

Yes. The running score and your options are saved in your browser, as is an unfinished game, so you can continue later. Undoing a finished game from its result window removes that result from the score.

Can two people play on one device?

Yes. Choose Friend next to Computer at the top and take turns on the same screen. The status line shows whose turn it is, and the score for friend games is kept separately.

Add Tic-Tac-Toe to your website

Free, no sign-up. Paste the code into any page. The credit line under the game is optional, but we appreciate it. On WordPress, use our plugin and the shortcode.

Embedding rules and options