Guide
How to Play Tic Tac Toe
Tic Tac Toe is a two-player game on a 3×3 grid. Take turns placing X and O; the first to line up three in a row, column, or diagonal wins. A full grid with no line is a draw.
Play Tic Tac ToeThe objective
Get three of your marks in a straight line
Tic Tac Toe is played on a 3×3 grid of nine squares. One player is X, the other is O. X always moves first, then players alternate, placing one mark in any empty square per turn.
You win the instant you complete a line of three of your own marks — along any of the three rows, the three columns, or the two diagonals. There are exactly eight such winning lines. If all nine squares fill without a line, the round is a draw.
The game is free, runs in the browser, and needs no account. Open play Tic Tac Toe for the board; use this guide for the full rules, the two play modes, and the tactics that keep you from ever losing.
Controls
Tap, or play the whole round from the keyboard
Every control targets one of the nine squares. There is no aiming and no timing — only which empty square you choose.
Everywhere
Click or tap
Click or tap any empty square to place your mark. Occupied squares and the computer’s turn are ignored, so a stray tap never costs you a move.
Keyboard
Number keys 1–9
The number keys map to the grid the way a phone keypad does — 1 is the top-left square, 5 is the center, 9 is the bottom-right. It is the fastest way to play a full round without the mouse.
Keyboard
Arrow keys + Enter
Move a highlighted cursor around the grid with the arrow keys or W/A/S/D, then press Enter or Space to place your mark in the focused square.
Shortcuts
R and M
Press R to start the next round at any time, and M to mute or unmute the sound effects. Both work during a round and on the result screen.
Each turn
Four beats, repeated until someone wins
A round of Tic Tac Toe is short, but the sequence is always the same. Knowing it is most of what “getting good” means.
- 1
Take turns on the grid
The board is a 3×3 grid of nine empty squares. X always moves first, then players alternate — X, O, X, O — placing one mark in any empty square per turn.
- 2
Line up three to win
The first player to get three of their own marks in a straight line — across a row, down a column, or along either diagonal — wins the round immediately.
- 3
A full board is a draw
If all nine squares fill up and neither player has three in a row, the round is a draw (also called a “cat’s game”). Nobody scores.
- 4
Play again instantly
Start the next round with one click — no reload. The opening move alternates between X and O each round so neither side keeps the first-move advantage.
Rules & results
Winning, the draw, and the running score
The rules are identical in both play modes. Only who controls O changes.
The objective
Be the first to place three of your marks in a straight line. There are exactly eight winning lines: three rows, three columns, and the two diagonals. The round ends the instant one is completed.
Turn order
X moves first in the first round. Players then alternate strictly — you may never take two turns in a row, and you may never skip your turn. Here the opening mark also alternates from one round to the next.
Winning and the draw
A completed line wins immediately, even if the board is not full. If the ninth mark is placed without any line being completed, the round is a draw. There is no tiebreaker and no sudden death.
Scoring across a session
Each round is worth one result. This build keeps a running tally of X wins, O wins, and draws for the current browser, plus your win streak and record against the computer. Nothing is timed.
Press R or use Restart to start a new round at any time. Details on saved scores and resets live in the Tic Tac Toe FAQ.
Play modes
Versus computer, or two player on one device
There are no difficulty tiers — just who you are playing. Switch modes from the toggle above the board at any time.
- 01 · 1 player
Versus computer
Play X or O against a computer opponent that uses the minimax algorithm to read every possible continuation. It plays close to perfectly, so most well-played rounds end in a draw — but it slips just often enough that a sharp player can steal a win.
- 02 · Pass and play
Two player
Hand one device back and forth. Both X and O are controlled by people, with the on-screen turn indicator showing whose move it is. No account, no second device, and no network needed.
- 03 · Both modes
Alternating first move
Going first is a real advantage in Tic Tac Toe, so the opening move switches sides every round. Over a session both players — or you and the computer — get the same number of first moves.
Common mistakes
Why beginners lose a solved game
Tic Tac Toe cannot be lost with correct play, so every loss is a specific error. These are the four that account for almost all of them.
Ignoring the center
The center square is part of four of the eight winning lines — more than any other square. Giving it away on the first move hands the opponent the strongest position on the board.
Missing a block
If the opponent has two marks in a line with the third square open, you must play there. Chasing your own attack instead of blocking is the single most common way a beginner loses.
Playing an edge early
The four edge squares each sit on only two winning lines. Opening on an edge, rather than the center or a corner, quietly cedes the initiative before the game has really started.
Walking into a fork
A fork is a move that makes two threats at once. Losses between competent players almost always trace back to a move that let the opponent set one up two turns earlier.
Strategy habits
Tips so you never lose
Treat these as habits, not tricks. For the full walkthrough of forks and the perfect-play draw, see the strategy guide.
- Take the center square whenever it is open on your first move — it sits on four of the eight winning lines.
- If you cannot take the center, take a corner. Corners each belong to three winning lines; edges only two.
- Always block an opponent who has two in a row with an open third square — a missed block loses the round.
- Look for a fork: a single move that creates two separate threats at once, so your opponent can only stop one.
- When your opponent threatens a fork, respond by forcing them to defend a two-in-a-row instead of building your own trap.
- Against a perfect opponent the best you can get is a draw, so play to never lose rather than to always win.
Where you can play
Same game on phone and desktop
tictactoegame.app runs in any modern browser with no app to install. Scores are stored per browser, so two devices will keep separate tallies.
Desktop browsers
Chrome, Edge, Firefox, and Safari all run the game with no plugin. Use the mouse, the number keys 1–9, or arrow keys plus Enter — whatever is quickest for you.
Phones and tablets
The board and controls are sized for touch and sit above the fold in portrait, so a round is playable without scrolling. Two-player mode turns any single phone into a pass-and-play board.
Scores on this device
Your X / O / draw tally, win streak, and record against the computer are saved in local browser storage. They persist between visits on the same browser but never sync to a server or another device.
Still unsure about a rule? Read the Tic Tac Toe FAQ, see who makes this build, or jump in and play.
Play Tic Tac Toe free