Game rules

Tic-Tac-Toe Rules: How to Play, Win and Tie

Tic-tac-toe is a game for two players on a 3-by-3 grid: one plays X, the other plays O, and the first to get three in a row wins. There's no federation or official rulebook: the classic rules apply, and they're the same all over the world. Below are those rules, the strategy and the best-known variations. At the end of the page, you'll find a summary of how Tic-Tac-Toe works on Selminha.com.

Updated

Who sets the rules

Tic-tac-toe has no official governing body. The rules are traditional and barely change from country to country; the name is what changes. In Britain and much of the Commonwealth, it's noughts and crosses. In Brazil it's jogo da velha, and in Spanish it's tres en línea, tres en raya, gato or ta-te-tí.

The board and the marks

The board has 9 squares in 3 rows and 3 columns, usually drawn on paper with two horizontal and two vertical lines. One player uses X and the other uses O. Once a mark is placed, it stays put.

Who goes first

There's no universal rule. By custom, X goes first. In a series of games, players often take turns going first, or let the loser start the next game. It's best to agree beforehand.

How to play

  • Players take turns, one mark at a time.
  • On your turn, put your mark in an empty square.
  • You can't play in a square that's taken, and you can't skip your turn.
  • The game goes on until someone gets three in a row or the board fills up.

How to win

You win by filling one of the eight lines on the board with three of your marks: the three rows, the three columns and the two diagonals. On paper, the winner usually draws a line through them.

Since there are 9 squares, the player who goes first places at most 5 marks, and the other player at most 4.

Cat's game

If all nine squares are filled and no one has three in a row, the game is a tie. In the US, a tie is called a cat's game.

Tic-tac-toe is a solved game: when neither player makes a mistake, every game ends in a tie. To win, you have to take advantage of your opponent's mistakes.

A strategy that never loses

If you follow this order of priority on every move, you'll never lose:

  • If you can complete three in a row, do it.
  • If your opponent is about to complete a line, block it.
  • Make a fork: one move that threatens to complete two lines at once.
  • Stop your opponent's fork.
  • Take the center if it's open.
  • If your opponent is in a corner, take the opposite corner.
  • Take an open corner.
  • Last of all, take an edge (side) square.

Tips for beginners

  • The center is part of four lines, and each corner is part of three. The edge squares are part of only two.
  • Attack before you defend: if you can win now, win.
  • Before you move, check all eight lines to see whether your opponent has two marks with the third square open.
  • A fork decides the game: your opponent can only block one of the threats.

Variations of tic-tac-toe

  • With moving pieces: each player has only three pieces and, after placing all three, starts moving them. That's the idea behind three men's morris.
  • Misère: whoever gets three in a row loses.
  • Bigger boards: on 4 by 4, 5 by 5 or a gomoku board, you need four or five in a row.
  • In three dimensions: the game spreads over several stacked boards, like a cube.

On Selminha.com

The rules in Tic-Tac-Toe on Selminha.com

Tic-Tac-Toe on Selminha.com uses the classic rules on a 3-by-3 board. Here's what the game decides automatically.

Who plays X
Against the computer, you always play X. By invite, whoever creates the room plays X, and whoever joins through the link plays O.
Who goes first
X goes first in the first game. After that, the first move switches every game, against the computer and by invite, rematches included. The loser-starts rule doesn't apply.
Against the computer
Three levels: Scribble (easy) finishes his line only once in a while and doesn't block yours; Nino (medium) finishes and blocks, but can't see a fork coming; Granny Quelonia (hard) plays perfectly, and the best you can get from her is a cat's game.
Scoreboard
Against the computer, games run in a series, and the scoreboard shows wins, cat's games and losses.
By invite
Each of you plays on your own device, whenever you can. The game is saved on the site and lets you know when the other player has moved. There's no clock on each move.
Rematch
When the game ends, you both decide whether to play again in the same room.
Resigning and inactivity
If you resign, you lose. If the other player goes more than 2 days without moving on their turn, you can end the game as the winner. A room with no moves for 7 days closes automatically.
Watching
Anyone who opens the link to a room with two players can watch, up to 50 people per game.

More game rules