⭕ Tic Tac Toe

Play Tic Tac Toe against the computer!

You are X. Tap a square to start!
0
Wins
0
Losses
0
Draws

How Tic Tac Toe works here

You are X and always go first; the computer, O, replies straight after each move. It takes a winning square if it has one, otherwise blocks yours, otherwise takes the centre if it is free, and otherwise picks a random empty square. Three in a row across, down or diagonally wins, and a full board is a draw. Wins, losses and draws are counted until you reload.

Controls

Tap or click an empty square. New Game clears the board.

Three tips

  1. Open in a corner. The computer will take the centre.
  2. Take the corner opposite your first. If the computer then plays a corner instead of an edge, block its line and you will have two winning threats at once; it can stop only one.
  3. With perfect play on both sides the game is always a draw, so draws are normal; the wins come when the computer’s random move slips.

What it practises

Forks and thinking two moves ahead: creating two threats at once is a basic idea in chess and many other games.

Frequently Asked Questions

Which side do I play, and can I switch to two players?
You are X and move first; the computer replies as O. This page has no local two-player setting. New Game clears the board for another round against the computer.
Does the computer always choose the best move?
It takes an immediate win, blocks an immediate loss, then takes the centre if available. Otherwise it chooses a random empty square. It can miss a fork, where one move creates two separate winning lines.
Why does a full board sometimes end without a winner?
If neither side has three in a row, the result is a draw. The session counts draws as well as wins and losses. Reloading the page resets those totals.