Tic Tac Toe
Noughts and crosses against an unbeatable computer, an easy one, or a friend on the same screen — right in your browser.
Click a square or press 1–9 (numpad layout) · Space for a new game
Game options
Unbeatable · X starts · sound on
How to Play Tic Tac Toe in 3 Steps
Pick an opponent
Play the computer — Easy picks random squares, Unbeatable never loses — or choose 2 Players to share one keyboard or touchscreen.
Take turns
Click or tap an empty square, or press 1–9 like a phone numpad (7 8 9 on the top row). X always goes first unless you change it in the options.
Three in a row wins
Line up three horizontally, vertically or diagonally. The tally of wins, draws and losses is kept on this device only.
Controls
| Action | Keyboard | Touch / mouse |
|---|---|---|
| Place a mark | 1–9 (numpad layout: 7 8 9 top row) | Tap / click a square |
| New game | Space | Tap New game |
| Reset tally & settings | Esc | Tap Reset |
Tic Tac Toe — Frequently Asked Questions
Can the computer be beaten?
On Easy it plays random legal squares, so yes. On Unbeatable it uses the minimax algorithm to look at every possible continuation, so the best you can do is draw — try taking a corner first.
Why do 1–9 feel upside down?
The keys follow a phone or numpad layout: 7 8 9 is the top row, 4 5 6 the middle and 1 2 3 the bottom, so your hand position matches the board.
Who goes first?
X by default. In the options you can let O start or alternate the first move every game; in two-player mode Player 1 is X and Player 2 is O.
Where is the score saved?
Only in your browser's localStorage, under the key toolity_tictactoe: wins, draws and losses per mode. Nothing is sent anywhere; Reset or clearing site data removes it.
Does it work on a phone?
Yes. The board scales to the screen, squares are large tap targets, and two people can pass one phone back and forth in 2 Players mode.