Tic-tac-toe online for free
Three levels vs the computer, or two players.
Play tic-tac-toe online for free
The game everyone knows, also called noughts and crosses. Play the computer or someone next to you on the same screen.
It works on phone and computer, with nothing to download and no account. The board is a dark slab with the grid drawn in light: you play the lime X and the computer plays the silver O. Each mark is drawn with a stroke as it is placed.
When someone gets three in a row, a line of light runs across the three marks from end to end and the rest dim a little, so you can see at a glance where the game was won.
When you finish, more classics are one tap away: Four in a row · Memory game · Sudoku · Solitaire
What tic-tac-toe is
Tic-tac-toe is a pencil-and-paper game for two players. It is played on a three-by-three grid: one player places X and the other places O, taking turns, and whoever lines up three of their marks wins.
It is one of the first strategy games people learn, because the rules fit in one sentence and a game takes less than a minute. The same game goes by several names:
| Name | Where you hear it |
|---|---|
| Tic-tac-toe | United States and Canada |
| Noughts and crosses | United Kingdom, Australia and New Zealand |
| Xs and Os | Ireland, and informally elsewhere |
Whatever the name, the board and the rules are the same.
How to play tic-tac-toe
The goal
Place three of your marks next to each other on one line before your opponent does. There are eight possible lines: the three rows, the three columns and the two diagonals. If all nine cells fill up and nobody has done it, the game is a draw.
The parts of the screen
- The board
- Nine cells in three rows of three. Tap a free cell to place your mark.
- The score
- At the top you see the games won by you, by the computer and the draws, for the mode you are playing.
- The mode selector
- Easy, Normal, Impossible or 2 players. Changing mode starts a new game.
- New and Reset score
- New starts another game. Reset score, below the board, clears the count for the current mode.
Step by step
- Choose a modeEasy (the computer plays at random half the time), Normal (it takes a win when it sees one but sometimes slips), Impossible (it never loses) or 2 players on the same device.
- Place your markTap a free cell or press 1 to 9 on your keyboard. Games alternate who starts.
- Get three in a rowWhoever lines up three marks wins: across, down or diagonally.
Worth knowing about this tic-tac-toe
- Against the computer you always play X and it plays O.
- Who starts alternates: you go first in the first game of each mode, the computer in the next, and so on.
- A mark that has been placed cannot be moved or removed. There is no undo here.
- The computer takes a moment to answer, less than a second. While it is thinking you cannot place a mark.
- On a keyboard, keys 1 to 9 place a mark: 1 is the top-left cell and 9 is the bottom-right one.
Levels and modes: Easy, Normal and Impossible
The three levels differ in how often the computer plays its best move. None of them cheats: the computer sees the same board you do.
| Mode | How the computer plays | Who it is for |
|---|---|---|
| Easy | Half the time it places its mark in a random cell. The other half it plays its best move. | For getting started or playing with children. |
| Normal | If it can win on that move, it always does. Otherwise, one time in four it slips and plays at random. | For practice: you have to draw out the mistake. |
| Impossible | It works out every possible continuation and always picks the best one. It never loses. | For learning to draw without slips. |
| 2 players | The computer does not play: two people take turns on the same screen. | For playing with someone next to you. |
On Impossible, the best you can get is a draw. That is not a flaw in the game: in tic-tac-toe, when both sides play without mistakes, the game always ends level.
Two-player tic-tac-toe on the same device
Choose 2 players and pass the phone back and forth, or sit at the same computer. Above the board you can see whose turn it is, with their mark drawn, and hovering over a free cell shows a faint outline of the mark about to be played.
X starts the first game and O starts the next, so nobody always has the advantage of going first. The score for this mode counts wins for X, wins for O and draws, and is kept apart from the levels against the computer.
Games between two people do not count towards your stats or your streak: only games against the computer do.
Strategy and tips for never losing at tic-tac-toe
- If you go first, open in a corner or the centreThe centre is part of four of the eight lines and each corner is part of three. Edge cells are part of only two, so they are the weakest opening.
- Win when you canBefore every move, check whether you have two marks on a line with the third cell free. It sounds obvious, but it is the most common oversight.
- Block two in a rowIf your opponent has two on a line and the third cell is free, your mark goes there. There is one exception: when you can win on that same move.
- Look for the double threatA mark that leaves you with two lines one cell short wins the game, because your opponent can only cover one. Nothing else beats someone who does not slip.
- If they open in a corner, answer in the centreAny other reply gives your opponent a double threat a few moves later.
- If they open in the centre, answer in a cornerAnswering on an edge loses to an opponent who plays well. From the corner, the game can be drawn.
- Watch out for opposite cornersIf you hold the centre and your opponent holds two opposite corners, play an edge, not another corner: that forces them to block and they cannot set up the double threat.
- Learn to draw on ImpossibleIf you can draw game after game against the Impossible level, you are defending without mistakes. From there, winning depends on the other side slipping.
Score, streaks and stats
Tic-tac-toe has no points: each game is won, lost or drawn. What is kept is the count of games.
| What is saved | How it works |
|---|---|
| Score | Wins for you, wins for the computer and draws. There is one per mode and you can reset it. |
| Played and won | Every finished game against the computer counts as played. Only the ones you win count as won. |
| Streak | Wins in a row against the computer. A draw or a loss resets it. |
| Achievements | First game, first win, 3-win streak and 10 games. |
Everything is saved only on this device, with no account. If you clear your browser data, the count starts again.
Tic-tac-toe: common questions
Can I beat the computer on Impossible?
No: it plays perfectly, so the best you can get is a draw. On Easy and Normal you can win.
Is it the same as noughts and crosses?
Yes, it is the same game with a different name. Some people also call it Xs and Os.
Who goes first?
It alternates. You start the first game of each mode as X; the computer (or O, in a two-player game) starts the next one, and so on.
What is the best first move?
A corner or the centre. The centre is part of four lines and each corner of three; edge cells are part of only two.
Why do so many games end in a draw?
Because the board is small: if both sides block in time, all nine cells fill up with nobody getting three in a row. To win, the other side has to make a mistake.
Can two people play?
Yes. Choose 2 players and take turns on the same screen. That mode has its own score and does not count towards your stats.
Is the score saved?
Yes, on this device, one per mode. Reset score starts the count again.
Do I need to download anything or create an account?
No. It is free to play in the browser on your phone or computer, with no sign-up and no download.
Draw your neon tic-tac-toe with AI
Like the look of that line of light? In the Studio you can create an image of your tic-tac-toe: we leave the idea written so you can change the mark, the colours and the details as you like. Exploring the Studio is free; generating the image uses credits.
Free tools for your tic-tac-toe games
To decide who goes first or run a small tournament at home, these free Cocuyo tools come in handy.
































































