How do I play Tic Tac Toe?
You are X and you move first. Click any empty square to place your X, and the computer (O) replies immediately. Keep alternating until someone completes a line of three or the board fills up. Your wins, the computer's wins, draws and moves played are tracked across games, and the New Game button starts a fresh board instantly. Try the Sample to see an opening move in the center and the computer's reply.
Rules and winning lines
There are eight ways to win: three rows, three columns and two diagonals. The first player to fill any one of those lines with their mark wins the game; if all nine squares fill with no complete line, the game is a draw. Because X moves first, X has a small advantage — five moves to O's four — which is why experienced players alternate who starts across a series of games.
Strategy: corners, center and forks
The center is the strongest square because it belongs to four winning lines; corners belong to three, and edges to only two. The key tactic is the fork — a move that creates two separate threats at once, so your opponent can only block one. A classic fork setup is taking opposite corners: if your opponent answers in the center, the third corner often creates an unstoppable double threat. Defensively, always block an immediate two-in-a-row first.
Can Tic Tac Toe be solved?
Yes — Tic Tac Toe is a solved game. With perfect play from both sides, every game ends in a draw, which is why the computer here is hard to beat: it always takes a winning move and always blocks yours. The full game tree has only about 255,000 possible games, small enough that early computer programs in the 1950s already played it perfectly. Beating a careful opponent means hoping they make a mistake — usually by ignoring a fork.
History of the game
Three-in-a-row games are ancient: similar boards appear in Egyptian temples and in Roman ruins, where the game was called terni lapilli. In Britain it became known as noughts and crosses, and in the US as tic-tac-toe, a name borrowed from an older pencil game. It was also one of the first games ever played by a computer — the 1952 program OXO ran on a Cambridge mainframe with a telephone dial as its controller.
Is it free and private?
Yes. The game is completely free, needs no sign-up, and runs entirely in your browser. Your games and scores are never uploaded or stored. It works on phones, tablets and desktop computers.