Tic-tac-toe
Play tic-tac-toe against a computer from easy to unbeatable, or with a friend on one device, with hints and a review of every game. Free, with no account or uploads.
Reaches other sites: online play goes through relays that cannot read anything · Check it yourself
Your turn: you are X
- You
- 0
- Draws
- 0
- Computer
- 0
How to play
How it works
- 1Choose who you playThe computer, from Easy to Unbeatable, or a friend taking turns on this device.
- 2Get three in a rowPress a square, or use the arrow keys and Enter, or 1 to 9. Ask for a hint to see where each square leads.
- 3See what decided itAfter each game, the review finds the move that won or lost it and what would have held.
The game runs in your browser. Nothing you play is sent anywhere but to the friends you play online, and there are no adverts.
Every option explained
A little help along the way
Follow these steps. Every option is explained underneath. The game runs in your browser; nothing is sent anywhere.
- Choose who you play, and the boardThe computer is the usual, at Medium. Choose Easy to learn, Hard for a real game, or Unbeatable to try for a draw; Here together to take turns on this device; or Friends online to play friends anywhere, live in a room or taking turns by link. The board is 3 × 3, 4 × 4 with four in a row, or Reverse, where a line loses.
- Get three in a rowX goes first. Press a square to put your mark there. Three of yours in a row, across, down or corner to corner, wins; a full board with no line is a draw.
- Ask for a hint when you are stuckHints mark every free square with what it leads to if both play perfectly from there: a win, a draw or a loss. Take back undoes your last move.
- See what decided the gameWhen the game ends, the review steps through every move, marks the one that won or lost it, and outlines the squares that would have held.
Every option explained
- Keys
- 1 … 9: Play a square on the 3 × 3 board, 1 the top left to 9 the bottom right. ← ↑ → ↓: Move between squares. Enter Space: Play the square you are on. H: Show or hide hints. U: Take back a move. N: New game. Keys act while the board has the focus.
- Levels
- Easy sometimes misses a line it could take or stop. Medium always takes and stops a line but does not see a fork coming. Hard plays perfectly most of the time and slips now and then. Unbeatable plays perfectly: it looks at every game that can follow, so it never loses, and among its best moves it picks the one that leaves you the most ways to go wrong.
- Friends online
- Write your name, make a room link and send it. Everyone who opens it writes their name and joins. Two play each game and everyone else watches; outside a series the winner stays on and the next in line plays, and every move shows on every screen at once. The host's browser holds the room: it checks every move and starts each game. If the host leaves, the next person in the room takes over and the game goes on. Under Score, play a best of 3, 5 or 7, or keep a running score; a turn clock makes a turn that runs out of time lose the game, and Play again asks for another game, which starts once everyone who played has asked. Send a reaction from the row under the board, or chat. Browsers connect directly where networks allow (asking Google's or Cloudflare's address-lookup service for the network address, which the others in the room can see); otherwise moves go through public relays, sealed with a key in the link so that the relays cannot read them. Nobody needs an account, and nothing goes through a server of ours.
- Taking turns by link
- Under Friends online, choose Take turns by link instead. Make your move, then copy or share the link. Your friend opens it, presses Play your move, and sends the new link back. The game is in the link after the #, so nothing goes through a server; anyone with the link can see the game.
- Boards
- On 4 × 4, four in a row wins; in Reverse, whoever makes three in a row loses. The computer knows every game of each, so Unbeatable never loses on any of them.
- Play as and who goes first
- Under More options, play as X or O and choose who starts: you, the computer, or each in turn.
- Screen readers
- Each square says where it is and what is in it, and every move and the end of each game are read out.
- Kept
- The scores last until you leave the page. With “Keep my scores on this device” on, they are kept in this browser only, until you turn it off.
Keep going
Guides
- How to win at tic-tac-toe: the strategy that never loses
- Tic-tac-toe rules: how to play with two players
- Can you beat impossible tic-tac-toe? Why a draw is the best
- Noughts and crosses strategy: how to play and not lose
- How do I play tic-tac-toe with a friend online?
- 4x4 tic-tac-toe strategy: can the first player win?
- Reverse tic-tac-toe: how to win when three in a row loses