Tic-tac-toe and Gomoku rules

The rules fit in a sentence: take turns placing a mark on an empty square, and whoever first lines up the required number of marks wins. Below are the details and the online time controls.

Free · no sign-up · phone and desktop

Tic-tac-toe: X has three in a row

The basic rules

  1. X always moves first, then O, and so on in turn.
  2. Each move you place your mark on one empty square. A placed mark stays; it can’t be moved or removed.
  3. The first to line up the required number of marks horizontally, vertically or diagonally wins: 3 on 3×3, 5 on 15×15.
  4. If every square is filled and nobody has a line, it is a draw.

Gomoku: five or more

We play free-style Gomoku: five in a row wins, and a line of six or more counts too. Some tournaments count exactly five only or place restrictions on the first player (renju) — we have no such restrictions.

The first player has a big edge: in 1994 it was proven by computer that in free-style Gomoku on 15×15 X always wins with correct play (L. V. Allis). That is why online the X player is chosen at random.

3×3 in numbers

We had the game engine enumerate every possible 3×3 game (a game ends when someone wins or the board is full):

MeasureCount
Different games255 168
Games X wins131 184 (51%)
Games O wins77 904 (31%)
Draws46 080 (18%)
Distinct board positions5 478

In random play X wins more often, but if both sides play correctly it is a draw. That is exactly how the Hard computer plays.

Time in online games

VariantTimeRating
3×315 seconds per moveno
Gomoku (quick game)5 minutes + 3 seconds after each moveElo
Gomoku (with a friend)3+2, 5+3, 10+5your choice

Whoever runs out of time loses. In Gomoku the clock starts after the second move; the first moves get 30 seconds, and if they aren’t made the game is cancelled without rating. If your opponent disconnects, we wait 45 seconds.

FAQ

Do diagonal lines count?

Yes, both diagonals count.

Can I offer a draw?

Yes, online Gomoku has an Offer a draw button; if your opponent accepts, the game ends in a draw.

Can I take back a move?

Against the computer and on one device, yes, with the Undo button. Online, no.

See also

▶ Play