Experiment Web
CaroPikachuSudokuProcess
  1. Blog

  2. Learn caro

Learn caro (five in a row)

Caro is a game of two players and one goal: five of your marks in a row. The rules fit in one sentence, but the game is deep, and it has one rule that changes everything: a five blocked at both ends does not win. This guide goes from the rules to the shapes every player must recognise, then to the tactics that decide games, and ends with what this site's Hell level, a strong engine, has taught us about openings and about who wins.

How to read the boards: X always moves first. Use the buttons to play the moves one by one; the latest move is shaded and every played stone carries its move number. Ringed cells are the points the text talks about, and a winning five is highlighted. Cells are named by column letter and row number, like h8.

Play caro against the machine

The board and how to win

Two players take turns putting their mark, X or O, on an empty cell. X always starts. You cannot pass, and a mark never moves or leaves the board.

The first player to get five marks in an unbroken line wins: across, down or along either diagonal. On this site the board is 15 by 15 or 20 by 20 (20 by 20 by default), big enough that the edges rarely matter.

  • Six or more in a row also wins here. Some variants (gomoku, renju) refuse an overline; Vietnamese caro does not.
  • A full board with no five is a draw, but on a big board that almost never happens.

Five in a row wins

X plays j8 and makes f8 to j8: five in a row, across.

defghijkl4
5
6
7
O
O
8
X
X
X
X
9
O
10
11
12
Start position

Six in a row also wins

X fills the gap at i8: six in a row, f8 to k8. Caro counts it as a win.

defghijklm4
5
6
7
O
O
8
X
X
X
X
X
9
O
O
10
11
12
13
Start position

The blocked-ends rule

Vietnamese caro is usually played with one extra rule, the default on this site: a five does not win when both of its ends are blocked by the opponent's marks. The five has to be "alive" at one end at least.

Only opponent marks block. The edge of the board does not count as a block, so a five against the edge wins as long as the other end is not an opponent mark. With the rule switched off ("Free" in the game settings), any five wins.

Why it matters

The rule makes defending stronger: a line that is already capped at one end can be killed by a single mark at the other end, even after it grows to five. Many shapes that win in plain gomoku are only half as dangerous here. The intermediate level shows the trap it creates.

Blocked at both ends: no win

X makes f8 to j8, but O already stands at e8 and k8. Under the blocked-ends rule this five does not count and the game goes on.

cdefghijklm3
4
5
6
7
O
8
O
X
X
X
X
O
9
10
11
12
13
Start position

The edge is not a block

X makes a8 to e8 against the left edge. O blocks the right end at f8, but the edge does not count, so X wins.

abcdefghij4
5
6
7
O
8
X
X
X
X
O
9
O
10
11
12
13
Start position

The shapes: threes and fours

You do not need to read the whole board. Strong players look for a few shapes, because each one tells you who must answer and how fast.

A three is three marks that can become an unstoppable open four with one more move. If both ends are free it is an open three (a live three) and must be answered at once. A three with a gap in it (a split three) is just as dangerous. A three blocked at one end is a closed three: it can still make a four, but that four can be stopped.

A four needs one more mark to make five. It must be blocked immediately, at the one cell that completes it. An open four has two such cells: the opponent can only block one, so an open four wins.

  • Open three: answer it now, or it becomes an open four.
  • Four: block it now, at the cell that makes five.
  • Open four: the game is over; you can only make it not happen in the first place.

Open three

g8 h8 i8 with f8 and j8 free (and room beyond). If O does not answer, X plays f8 or j8 and gets an open four. O must block at f8 or j8.

defghijkl4
5
6
7
O
8
X
X
X
9
O
10
11
12

Split three

g8 h8 _ j8 is also an open three: X at i8 makes an open four. The ringed cells are the possible blocks; the gap i8 is the best one.

defghijklm4
5
6
7
O
8
X
X
X
9
O
10
11
12
13

Closed three

O already stands at f8. X can still make a four (j8), but O will block it at k8. Not urgent.

defghijkl5
6
7
8
O
X
X
X
9
O
10
11
12
13

Four

O at f8 caps one end. X wins at k8 next move unless O blocks it right now.

defghijklm4
5
6
7
8
O
X
X
X
X
9
O
O
10
11
12
13

Open four

g8 to j8 with f8 and k8 both free: O can block only one of them, X plays the other and wins.

defghijklm4
5
6
7
O
8
X
X
X
X
9
O
O
10
11
12
13

Defending: the order of priorities

Most lost games are lost by a missed block, not by a brilliant attack. Before every move, go through this list from the top and stop at the first line that applies.

  • Can you make five? Play it.
  • Does the opponent have a four? Block the cell that completes it.
  • Can you make an open four, or a four that also makes an open three? Play it: it wins.
  • Does the opponent have an open three? Block it, or answer with a four of your own first (a four must be answered, so it buys you a move).
  • Otherwise build: put your mark where it extends your own lines and cuts the opponent's.

Blocking a split three

Block a split three (like g8 h8 _ j8) in the gap. A mark at either end leaves a four the opponent can still make; a mark in the gap breaks the shape for good.

Block a split three in the gap

O plays i8. The ends f8 or k8 would still let X make a four; the gap breaks the line completely.

defghijklm4
5
6
7
O
8
X
X
X
9
O
10
11
12
13
Start position

References

  • Wikipedia: Gomoku (rules, variants, solved status)
  • Wikipedia (Vietnamese): Cờ caro
  • L. V. Allis, Searching for Solutions in Games and Artificial Intelligence (1994): gomoku is a first-player win
  • Gomocup: the gomoku and renju engine tournament
  • Rapfi: the engine behind the Hell level