Tic Tac Toe

The game everyone knows, with a few extra moves. Play classic 3×3 noughts and crosses, or step up to a 4×4 or 5×5 board where you need four in a row and the strategy gets much deeper. Take on a friend on the same device, invite someone online with a code, or test yourself against a computer that never makes a mistake on Hard.

Play against the computer

Tic Tac Toe against Easy, Medium or Hard computer players.

Computer level
Board
Series

How to play

  1. 1

    Choose how to play: against the computer, pass-and-play with someone next to you, or online with a friend using a 6-character room code.

  2. 2

    Pick a board: 3×3 (three in a row wins), or 4×4 and 5×5 (four in a row wins). Then choose a single game or a best of 3 or best of 5 series.

  3. 3

    X is the first player and O is the second. Players take turns tapping an empty square to place their mark. On 3×3 you can also press keys 1 to 9.

  4. 4

    Get a full line of your marks in a row, column or diagonal to win the round. If the board fills up with no line, the round is a draw.

  5. 5

    In a series, the player who moves first swaps every round, so both players get the advantage equally. The first to win the majority of rounds takes the series.

  6. 6

    Online, each turn has a time limit; if a player runs out of time, the computer makes a move for them.

How to win at Tic Tac Toe

On 3×3, the centre is king. The middle square is part of four winning lines, more than any other, so taking it first gives you the most chances. If your opponent takes the centre, take a corner; corners are part of three lines, while edge squares are part of only two. With perfect play from both sides, 3×3 always ends in a draw, which is why the Hard computer never loses there. Your aim against it is to never lose either.

Create a fork. The way to beat a human on 3×3 is to set up two threats at once, so they can only block one. A classic pattern: take a corner, and if your opponent replies anywhere except the centre, take the opposite or adjacent corner to build two lines that both need one more mark. Watch for the same trap from your opponent: whenever they have two marks that could start separate lines, block the square where those lines meet.

Bigger boards reward planning. On 4×4 and 5×5 you need four in a row, so a single move rarely wins or loses the game. Build in the middle, where your marks can join lines in every direction, and try to make open threes: three in a row with empty squares at both ends. An open three forces your opponent to block immediately, and two of them at once usually wins.

Always check before you move. Most lost games come from missing a threat, not from a lack of clever ideas. Before every move, scan for any line where your opponent already has all but one mark, and block it. Then look for your own winning square. Only when neither exists should you think about longer-term plans like forks and open lines.

Frequently asked questions

Can you beat the computer on Hard?+

On 3×3, no: the Hard computer plays perfectly, so the best you can do is a draw. On 4×4 and 5×5 it searches several moves ahead but can still be outplayed with careful forks. Easy and Medium make mistakes you can exploit on every board.

Who goes first?+

X moves first in round one. In a best-of-3 or best-of-5 series the first move alternates every round, so both players start the same number of times.

How do 4×4 and 5×5 work?+

The rules are the same, but you need four of your marks in a line instead of three. Lines can be horizontal, vertical or diagonal, and on 5×5 a line can start anywhere as long as it has four squares in a row.

Is Tic Tac Toe the same as noughts and crosses?+

Yes. Noughts and crosses is the British name for the same game. Some people call it Xs and Os.

How do I play with a friend online?+

Choose Online, create a room and share the 6-character code or link. Your friend joins from their own device and you play in real time. Players connect directly to each other, so nothing about the game is stored on our servers.

Can two people play on one device?+

Yes. Choose pass-and-play and take turns tapping the board on the same phone, tablet or computer.

More games

Browse all games or open a shared code workspace.