❌ Tic Tac Toe

Three difficulties, including an AI that genuinely cannot be beaten.

AI
STATUS 0W/L/D 0

How to play Tic Tac Toe

  1. You play X and move first.
  2. Click any empty square to place your mark.
  3. Get three in a row horizontally, vertically or diagonally to win.
  4. Choose your opponent's difficulty before you start.

Controls

Controls for Tic Tac Toe
InputAction
Click / TapPlace your mark
1 to 9 keysPlace by keyboard, matching the grid
RNew game
FEnter or leave full screen
EscLeave full screen

Tips & strategy

  • Opening in the centre gives you the most winning lines.
  • If the AI takes the centre, respond in a corner.
  • Create a fork — two threats at once — because a single threat is always blockable.
  • Against the Impossible AI a draw is the best available result, and that is a mathematical fact.

Frequently asked questions

Can the Impossible difficulty be beaten?

No. It uses a full minimax search, so it plays perfectly. A draw is the best you can achieve.

What do the three difficulties do?

Easy moves randomly, Medium blocks and takes obvious wins, and Impossible never makes a mistake.

Is the running record saved?

Yes, your wins, losses and draws persist between visits.