Tic Tac Toe — How to Play, Tips & Strategy

Everyone thinks they've mastered tic tac toe — until they meet the hard AI. This version offers three difficulty levels, from a beatable beginner to a flawless minimax opponent that has literally never lost, plus a two-player hotseat mode for settling arguments on one screen.

Tic Tac Toe gameplay screenshot
In-game: the minimax AI lining up yet another draw on impossible mode.

What is Tic Tac Toe?

This is a free browser version of the classic 3×3 grid game: take turns placing X's and O's, and the first player to line up three in a row — horizontally, vertically or diagonally — wins. What makes this edition worth your time is the opposition. Easy plays loose and makes real mistakes, medium punishes carelessness but can be outmaneuvered, and hard runs a full minimax algorithm — it evaluates every possible future of the game before each move, making it mathematically unbeatable. There's also 2-player hotseat, where you and a friend share one screen and alternate turns.

The game screen, recreated — O just closed out the middle row.

How to play

  1. Choose your opponent. Pick easy, medium or hard AI — or 2-player mode to face a human on the same device.
  2. Place your mark. Click or tap any empty square. X traditionally moves first.
  3. Build toward three in a row. Every move should either advance a line of yours or block a line of theirs — ideally both.
  4. Block instantly. If your opponent has two in a row with an open third square, that block is your forced move. No exceptions.
  5. Win, lose or draw, run it back. Games take under a minute — perfect for a best-of-whatever.
ActionDesktopMobile
Place mark🖱️ Click empty square👆 Tap empty square
Choose difficulty / mode🖱️ Click the selector👆 Tap the selector
New game🖱️ Click rematch👆 Tap rematch

Tips & strategy

FAQ

Is it free to play?

Yes — free in your browser, no download or account needed.

Does it work on my phone?

Yes — tap to place your mark. The 3×3 grid is made for touchscreens, and hotseat mode works great passing one phone back and forth.

Do my stats save?

Your results and records are kept in your browser's local storage on this device. Clearing your browser's site data will erase them.

Can the hard AI actually be beaten?

No. Hard mode uses the minimax algorithm, which plays perfectly by checking every possible game continuation. The best possible result against it is a draw — and achieving that every game is the real challenge.

Can I play against a friend?

Yes — 2-player hotseat mode lets two people share one screen and alternate turns, no second device needed.

▶ Play Tic Tac Toe free Browse all free games on Playing in the Sand

Related guides