Play Tic Tac Toe
Three in a row against an opponent that never blunders.
Match
Tic Tac Toe
Loadingโฆ
Controls
- Click or tap an empty square
- R to start a new round
About Tic Tac Toe
Tic Tac Toe is famously a solved game: with perfect play from both sides, every single match is a draw. That sounds like it should make it boring, and against the Hard opponent here it very nearly does โ the computer searches the entire game tree with minimax and simply cannot be beaten.
That makes it a useful game rather than a trivial one. Hard mode is a puzzle with a fixed answer: can you find the line that holds the draw every time? Easy mode plays loosely, which turns the game into practice at spotting forks โ positions where you threaten two lines at once and your opponent can only block one.
Under the hood the computer evaluates every reachable position and prefers faster wins and slower losses, which is why it will take an immediate win rather than dragging the game out. There is no randomness in Hard mode at all.
Three hundred and sixty-two thousand eight hundred possible move sequences, twenty-six thousand eight hundred and thirty distinct games, and every one of them ends in a draw when nobody errs. That is the whole appeal.
Tips for a higher score
- Open in a corner. It gives your opponent only one non-losing reply, and most humans miss it.
- The centre is the strongest single square: it belongs to four of the eight winning lines.
- Always check whether your opponent has two in a row before you build your own.
- The way to beat a weak opponent is a fork โ a move that creates two threats at once.
Frequently asked questions
Can I beat Hard mode?
No. The Hard opponent plays a perfect minimax game, so the best available result is a draw. Achieving that draw consistently is the real challenge.
Who moves first?
You do, as X, in every round. Moving first is a genuine advantage in Tic Tac Toe.
Is Tic Tac Toe really a draw with perfect play?
Yes. The game was solved long before computers, and any two players who never make a mistake will draw every game.
More games like this
Connect Four
BoardDrop your discs and line up four before the computer does.
Play free โReversi
BoardFlip your way to a full board against a computer that plans ahead.
Play free โCheckers
BoardDraughts against a computer that always takes the capture.
Play free โDots and Boxes
BoardDraw a line, close a box, go again.
Play free โ