Skip to content

Odd and even threats

Updated: 8 min read

Players who can already see threats, and who block double threats before they appear, come to the same question after a while: why does one threat win the game and another one do nothing at all? The answer is arithmetic. It was worked out by the computer scientist Victor Allis in his 1988 master's thesis at the Vrije Universiteit Amsterdam, and it is the most useful single idea in the game. Allis counts rows from the bottom, and so does this site. His White and Black are our red, who moves first, and yellow, who moves second.

The rows have owners

There are six rows. Row 1 is the bottom one. Rows 1, 3 and 5 are odd, and rows 2, 4 and 6 are even.

Imagine that most of the board has been filled and only one column is left empty. Red has played an even number of discs, so red is to move: red takes row 1, yellow row 2, red row 3, yellow row 4, and so on. In the last column, red always gets the odd rows and yellow the even rows. That does not depend on how the earlier discs were placed. Each full column holds six discs, an even number, so filling a column never changes whose turn it is.

Now put a threat into that column.

A Connect 4 board with columns 1 to 6 full and column 7 empty; red has a threat at column 7, row 3!Column 11Column 22Column 33Column 44Column 55Column 66Column 77
Only column 7 is left, and red threatens to complete four at column 7, row 3. Red is to move, so red takes row 1, yellow row 2 and red row 3: red wins.

Red's threat sits on an odd row, so red gets that cell without any help. The solver confirms that red wins this position with its twentieth disc.

Move the threat one row up and everything changes.

A Connect 4 board with columns 1 to 6 full and column 7 empty; red has a threat at column 7, row 4!Column 11Column 22Column 33Column 44Column 55Column 66Column 77
The same idea with a red threat in row 4. Yellow takes the even rows, so the threat is never used and the game is a draw.

Red gets row 3 and yellow gets row 4, so yellow is the one who drops into the threat cell and blocks it. The solver says this position is a draw. Allis states the general rule this way: the best threats for the first player are odd ones, and the best threats for the second player are even ones.

A Connect 4 board with columns 1 to 6 full and column 7 empty; yellow has a threat at column 7, row 2!Column 11Column 22Column 33Column 44Column 55Column 66Column 77
Yellow threatens to complete four at column 7, row 2. Red has to play row 1 first, because it is red's turn, and yellow takes row 2: yellow wins.

Here red is the one with no safe move. Red must play row 1 of the last column because nothing else is left, and yellow's even threat above it does the rest.

Zugzwang is the engine

The word zugzwang comes from chess and means "compulsion to move". In Connect 4 it is exactly what you just saw: a player who has to move, has nowhere harmless to go, and must drop a disc under a threat. Allis showed that a threat only matters if, at some point, the opponent is forced to play the cell below it, and that most of the time this happens when all the other columns are full.

This is why counting spare moves is the practical skill. You are not asking "do I have a threat?" but "who will run out of other moves first?" The answer depends on which rows each player is going to receive, and that is the odd and even rule.

Two threats, one winner

Both sides can have a threat, and then the parity decides which one counts. Allis worked this out for the simple case where each player has one threat and no new threat can appear. If an odd red threat and an even yellow threat are in the same column, the lower one wins. If they are in different columns:

Red's threat Yellow's threat Result
odd row even row Red wins
even row even row Yellow wins
even row odd row Draw
odd row odd row Neither threat can be used (draw unless something else appears)

The first line is the surprising one. A red threat on an odd row beats a yellow threat on an even row, even though even threats are what yellow normally wants. The reason, in Allis's words, is that the column holding red's threat stays empty for an odd number of cells. On the rest of the board the roles are reversed: red gets the even cells and yellow the odd ones, and yellow's even threat is never reached.

A Connect 4 board with columns 3 and 5 empty; red has a threat at column 5, row 3 and yellow has a threat at column 3, row 4RYColumn 11Column 22Column 33Column 44Column 55Column 66Column 77
Red has a threat on row 3 (column 5, marked R). Yellow has a threat on row 4 (column 3, marked Y). Red to move wins.

In this position red to move wins, and the solver says so. In the second row of the table, both threats are on even rows and yellow wins instead.

A Connect 4 board with columns 3 and 6 empty; red has a threat at column 3, row 4 and yellow has a threat at column 6, row 4RYColumn 11Column 22Column 33Column 44Column 55Column 66Column 77
Both threats are on row 4: red's in column 3, yellow's in column 6. Yellow gets the even cells and wins, even with red to move.

Allis is careful about the limits of these rules. They hold when those are the only threats that can ever exist. If one of the players can still create a new line, the tidy table can be broken, and a solver is needed to tell. Checking random positions with a solver shows that one visible threat on each side does not always follow the table, because new lines can still appear. The positions above were picked because they do follow it.

Follow-up: the second player's shield

At the start of the game every column has six free cells, an even number. That means yellow can answer every red disc by dropping directly on top of it. Allis calls this follow-up. Yellow gets every even cell and red every odd one, so every line of four that contains an even cell is closed to red. That covers vertical lines and all diagonals, because each of them crosses at least one even row.

Follow-up cannot be the whole plan for the second player, though. The one kind of line that avoids even rows is a horizontal line along an odd row. If yellow only follows, red gets all of row 1 and wins along the bottom, and Allis uses exactly this argument. So yellow has to take a few cells on its own, and each time it does, red may get a chance to take over.

Red takes over by building an odd threat. A red threat on row 3 or row 5 leaves an odd number of free cells in its column, which changes who gets odd and even cells on the rest of the board. Once the other columns have an even number of free cells, red can play follow-up in all of them, and yellow is the one who is squeezed. In Allis's terminology, red now controls the zugzwang.

What to do with this at the board

  • As red, aim for threats on rows 3 and 5. A single odd threat that yellow cannot answer can be enough to win the game.
  • As yellow, aim for threats on rows 2, 4 and 6, and when you have none, answer a red disc by dropping on top of it. It is a safe habit while red is still looking for an odd threat, as long as you do not let red collect the whole bottom row.
  • Before you build a threat, check which row it is on. An even threat for red or an odd threat for yellow looks dangerous and usually does nothing.
  • Count the empty cells in the other columns. Spare moves decide who has to step into the trap.

Try it

Start a game against the Medium level and play for one threat only. If you are red, try to build one on row 3 and stay away from the cell under it. If you are yellow, answer each red move on top of it until you can create a threat on row 2 or row 4. When the game ends, open the Review and look at the chart: the moves where it changes direction are the ones to replay.

For the first moves of the game, see the page on openings, and for the mistakes that give parity away, the page on common mistakes. The words used here are explained in the glossary.

Frequently asked questions

Which rows are odd and which are even in Connect 4?

Rows are counted from the bottom. Rows 1, 3 and 5 are odd, and rows 2, 4 and 6 are even.

Which threats should the first player look for?

Threats on odd rows, mostly row 3 and row 5. With the other columns filled up, the first player ends up playing the odd rows and the second player the even rows.

Which threats should the second player look for?

Threats on even rows. If the second player simply answers each move in the same column, they receive every even-row cell.

What is zugzwang in Connect 4?

A position in which every available move helps the opponent, usually because the only cells left to play are directly under a threat. The player who runs out of safe moves first loses the fight.

Keep reading