Tic-tac-toe
The pen-and-paper classic, with three computer levels that explain every move, plus the ultimate mode: nine small boards inside a big one, where every move decides where your opponent plays next.
Your turn: you play X.
How to play
- Pick an opponent: the computer on easy, normal or impossible, or two players on the same screen.
- Choose who goes first. The first player is X, the other is O.
- Take turns marking an empty square.
- Get three of your marks in a row (across, down or diagonally) to win.
- If all nine squares fill up with no three in a row, it’s a draw.
On a keyboard, keys 1 to 9 follow the number pad: 7 is the top-left corner and 3 the bottom-right one. You can also move with the arrow keys and mark with Enter.
Why perfect play is always a draw
Tic-tac-toe is a solved game: there are only 5,478 possible positions, few enough to check them all. If neither player makes a mistake, every game ends in a draw. That is why the impossible computer never loses: before each move it works out the whole game to the end. The best you can do against it is draw, and one careless move is enough for it to win.
Computer levels
Easy
Plays almost at random. Sometimes it spots a win or a block, often it doesn’t.
Normal
Always wins when it can and always blocks your lines, but makes a mistake now and then on other moves. Good for practising forks.
Impossible
Perfect play. It never loses, and it explains every move so you can see why.
Strategy
The centre is worth most
The centre square is part of four lines, each corner of three, and each edge of only two. When you go first, the centre or a corner is the strongest opening.
Answer a corner with the centre
If your opponent opens in a corner, the centre is the only reply that doesn’t lose. Any other square lets them set up a fork.
The fork
The way to win is to create two lines that are one move from complete at the same time: your opponent can only block one. Corners are the best squares for setting one up.
Block before you attack
Before each move, check whether your opponent has two in a line with the third square free. If you don’t block it, you lose next turn.
Ultimate tic-tac-toe
Rules
The big board holds nine small boards. The square you play inside a small board sends your opponent to the small board in the same position on the big board: mark a small board’s top-right square, and your opponent must play in the top-right board. The board in play is highlighted.
Three in a row inside a small board wins that board. If you are sent to a board that is already won or full, you may play in any open board. The game is won by taking three small boards in a row. If no boards are left open and nobody has done it, it’s a draw.
Ultimate strategy
Every move does two things: what it does in your board, and where it sends your opponent. Avoid sending them to a board they can win, or to a closed board, which gives them a free choice. The centre and corner boards are worth most, just like in the classic game, and sometimes it pays to give up a small board to control where your opponent goes.
FAQ
Can you beat the impossible computer?
No. It plays perfectly, so the best possible result is a draw. Easy and normal do make mistakes.
Who goes first?
You choose in the options: you or the computer. Whoever starts plays X. In two-player mode X always starts.
What do the colours mean?
Your marks are written in blue ink and the computer’s in pencil. In two-player mode, X is blue and O is pencil.
Is my score saved?
Yes, in your browser: wins, losses and draws for each game mode and opponent.