Skip to content
Tic Tac Toe

Guide

How to play Tic Tac Toe: rules for every board

Tic Tac Toe rules in plain words: who goes first, how three in a row wins, when a game is a draw, and the rules and controls for 4x4, 6x6, and 9x9 boards.

Last updated

Tic Tac Toe rules

Tic Tac Toe, also called noughts and crosses, is played by two people on a 3×3 grid of nine squares. These five rules are the whole game:

  1. Choose who is X. One player is X and the other is O. X always moves first.
  2. Take turns. On your turn, place your mark in any empty square. Marks are never moved or removed.
  3. Make a line to win. The first player with three marks in a row wins on the classic 3×3 board. A row can run across, down, or diagonally.
  4. Block your opponent. When your opponent has two in a line with the third square empty, take that square or they win on their next move.
  5. Know when it's a draw. The round is a draw when the board fills up, or as soon as every possible line holds both marks, so nobody can win.
X wins with a diagonal line.

Tic Tac Toe rules for bigger boards

The same rules work on bigger boards; only the length of the winning line changes. Longer lines keep the game fair: four in a row on 4×4 and five in a row on 6×6 are proven draws with perfect play, while five in a row on 9×9 has no published perfect-play result.

Board sizes and the line needed to win
BoardSquaresIn a row to win
3×393
4×4164
6×6365
9×9815

Each board has its own page with strategy tips: 4x4 Tic Tac Toe, 6x6 Tic Tac Toe, and 9x9 Tic Tac Toe.

How to play Tic Tac Toe on this site

Choose a board and an opponent under Game settings, next to the board. Changing a setting starts a new round.

  • Board switches between 3×3, 4×4, 6×6, and 9×9.
  • Computer lets you choose a difficulty and whether you play X (you move first) or O (the computer opens).
  • 2 players is for two people sharing one device. X still moves first. See 2 player Tic Tac Toe.

Computer difficulty levels

  • Easy picks a random empty square (on 6×6 and 9×9, one next to a mark already on the board). Good for learning the game.
  • Medium always takes a winning square and always blocks a line that is one mark from complete. Otherwise it plays a random move half the time, like Easy, and a strong one the rest of the time, so a well-built fork can beat it.
  • Hard on 3×3 looks ahead through every possible ending and never makes a mistake: you can draw, but not win. The bigger boards have far too many positions for that. There, Hard always takes a win or blocks a line one mark short, and otherwise spends about 0.3 seconds searching several moves ahead. On 6×6 and 9×9 it only considers squares within two steps of a mark. It is strong but not perfect.

Buttons and scores

  • New round clears the board and keeps the score.
  • Undo takes back your last move while the round is still open. Against the computer, it also takes back the computer's reply.
  • Reset scores sets the scoreboard you're looking at back to zero. Each board size, opponent, and difficulty has its own scoreboard, saved in this browser.

Keyboard controls

  • Tab moves into the board and out to the buttons.
  • Arrow keys move between squares; Home and End jump to the ends of a row.
  • Enter or Space places your mark.
  • 1 to 9 play a square directly on the 3×3 board, counting left to right from the top row.

Next: learn how to win Tic Tac Toe

Knowing the rules is the easy part. To stop losing and start setting traps, read how to win Tic Tac Toe: the eight-step move checklist, forks, openings as X, and how O holds the draw.

How to use

How to start a game of Tic Tac Toe

Pick a board, choose who you play, and make your first move. It takes a few seconds.

  1. Step 01

    Pick a board

    Under Game settings, choose 3×3 for the classic game, or 4×4, 6×6, or 9×9 for longer lines.
  2. Step 02

    Choose your opponent

    Play the computer on Easy, Medium, or Hard and pick X or O, or choose 2 players to share one device with a friend.
  3. Step 03

    Place your marks

    Tap or click an empty square, or use the arrow keys and Enter. The first to complete a line wins the round.

Learn more

Tic Tac Toe rules explained

Why the classic game ends in a draw, how the bigger boards change it, and where to go next.

Tic Tac Toe is a strategy game for two players on a 3×3 grid: take turns placing X and O, and the first to make three in a row wins. The rules fit in a sentence, but the game still rewards careful play.

This guide covers the Tic Tac Toe rules for every board on this site. Once you know them, the strategy guide shows how to set traps and never lose.

Why perfect play ends in a draw

With perfect play from both sides, the classic 3×3 game always ends in a draw. That's why the Hard computer on 3×3 can't be beaten: it looks ahead through every possible ending before it moves. You can still beat Easy and Medium by building a fork, two lines that each need one more mark.

Bigger boards, longer lines

  • 3×3: 9 squares, three in a row to win.
  • 4×4: 16 squares, four in a row.
  • 6×6: 36 squares, five in a row.
  • 9×9: 81 squares, five in a row.

Longer lines keep the bigger boards fair. Four in a row on 4×4 and five in a row on 6×6 are proven draws with perfect play, and nobody has published a perfect-play result for five in a row on 9×9. Each board has its own page with tips: 4x4, 6x6, and 9x9.

Noughts and crosses rules

Tic Tac Toe is called noughts and crosses in British English. The game is the same: players take turns, marks never move, and the first complete line wins. On this site, X always moves first.

Playing with a friend

Choose 2 players under Game settings to pass one phone, tablet, or computer back and forth. The 2 player page explains how it works on every board.

Games that build on the same rules

Once the basic rules feel easy, try a variation. Ultimate Tic Tac Toe plays nine small boards at once, and each move decides where your opponent plays next. Four in a Row drops discs into seven columns, and Gomoku asks for five in a row on a 15×15 board.

FAQ

Tic Tac Toe rules questions

Quick answers about turns, draws, board sizes, the computer, and the controls.

Who goes first in Tic Tac Toe?

X always moves first on this site. Against the computer, choose X to move first or O to let the computer open.

How many in a row do you need to win?

Three on the classic 3×3 board, four on 4×4, and five on 6×6 and 9×9.

When is a game of Tic Tac Toe a draw?

When the board fills up with no line, or as soon as every possible line holds both marks, so nobody can win. The game calls the draw for you.

Can you always win at Tic Tac Toe?

No. With perfect play from both players, the 3×3 game is always a draw. You win when your opponent makes a mistake, such as leaving a fork open.

Can you beat the Hard computer?

Not on 3×3, where Hard checks every possible ending: you can draw, but not win. On 4×4, 6×6, and 9×9 it searches ahead for about 0.3 seconds a move and isn't perfect, so a win is possible.

Can two people play Tic Tac Toe on one device?

Yes. Choose 2 players under Game settings and take turns on the same phone, tablet, or computer. X still moves first. See 2 player Tic Tac Toe.

Is Tic Tac Toe the same as noughts and crosses?

Yes. Noughts and crosses is the British English name for the same game: a 3×3 grid, X and O, and three in a row to win.

Can I play with the keyboard?

Yes. Tab into the board, move with the arrow keys, and press Enter or Space to place your mark. On 3×3, the keys 1 to 9 play a square directly.

Is my score saved?

Yes. Each board size, opponent, and difficulty has its own scoreboard, saved in this browser. Reset scores sets the one you're looking at back to zero.