Skip to content

Four in a Row guide

How to win at Four in a Row

With perfect play the first player always wins, by starting in the middle column; that was proved in 1988. So take the middle with your first disc and aim to make two threats at once. Real games are closer: when our Medium computers play each other, the one that goes first wins 51 games in 100.

Updated

Play on ScampLabsFour in a RowAgainst the computer on Medium. Free, no account.▶ Play nowInvite a friend

Is there a way to win every game?

Only if you go first and never make a mistake. In 1988 James D. Allen and Victor Allis each showed, working separately, that the first player wins with perfect play by starting in the centre column. Start anywhere else and perfect play ends in a draw or a loss.

Following that proof move by move needs a computer. For a person, the useful part is shorter. Go first and take the centre. Make your threats on odd rows, and stack two threats in one column when you can.

The game is also sold as Connect Four, a trademark of Hasbro; we have no link with Hasbro. The rules on our board are the same.

How much going first is worth

In theory, everything: with perfect play the first player always wins. In practice it's a small edge. In 1,000 games between our Medium computers, the first player won 512, the second 457, and 31 were draws.

Our Hard computer looks 5 moves ahead. Between two Hards, going first made no difference at all: 474 wins for the first player, 498 for the second and 28 draws. The proven first-player win needs perfect play, and 5 moves ahead is nowhere near that. Between people, whoever spots threats sooner wins, whoever went first.

7 columns, 6 rows, 69 ways to win

The grid is 7 columns wide and 6 rows tall: 42 squares, so 21 discs each if it fills up. Your disc drops to the lowest empty square of the column you pick. Four of yours in one straight line wins, across, up or diagonally. A square block of four doesn't count.

There are 69 different lines of four on the board: 24 across, 21 up and 24 diagonal. Each one is a way to win, and some squares sit in far more of them than others.

Why the middle column is worth the most

Count the lines of four through each square. A corner square is in 3 lines. The bottom square of the centre column is in 7. The two middle squares of the centre column are in 13 each.

Add up a whole column and the centre takes part in 60 line-slots, against 24 for an edge column. That's two and a half times the chances from the same one disc. Start there, and keep taking centre squares while they help you.

Threats, and the square underneath

A threat is an empty square that would finish a line of four for you. One threat is easy to block. Two at once usually aren't: if one move opens two winning squares, your opponent can only cover one.

The other half of the game is the square underneath. Say your opponent needs a square that's still floating, with an empty square below it. Don't drop a disc into that lower square, or you hand them the spot. The same works for you: a threat with an empty square under it is safe until someone has to fill that square.

  • Before every move, check whether they can win next turn. If they can, block it.
  • Then check whether your move puts a disc under one of their threats.
  • Only then look for your own best move.

Two threats in one column

Get two threats in the same column, one square right above the other. Your opponent can't keep both. When the lower square comes into play, they have to drop a disc there to block it. That disc is the floor for your next one, in the square above. You win.

Look for it whenever you have three in a line and the square above the open end is still empty.

Our Medium computer blocks a win it can see, but it only looks at the next move. Two threats at once, or one stacked on another, is more than it can stop.

Stack one threat on another against MediumOpens a game against the computer on Medium. Free, no account.

Odd rows for the first player, even for the second

Number the rows 1 to 6 from the bottom. Late in a game, when most columns are full, the players end up filling the last squares in turn, and that decides who gets which row.

As a rule of thumb, the first player wants threats on odd rows: 1, 3 and 5. The second player wants them on even rows: 2, 4 and 6. A threat on the right row tends to pay off at the end, when your opponent runs out of safe moves and has to play under it.

If you go second

Going second is harder, but perfect play is rare, so it's far from lost. If the centre column is still open, take it. If they took the bottom of the centre, drop yours on top of it: the centre is still worth more than anything else.

Then aim your threats at the even rows and block their odd-row threats early, before they can stack them.

Five habits that hand over the game

  • Opening on the edge. An edge column takes part in far fewer lines than the middle.
  • Only watching lines across. Diagonals are the ones people miss, mostly the ones that climb the other way from the one you're building.
  • Blocking a three that can never become four. If both ends of a line are taken or off the board, it isn't a threat.
  • Filling the square under your own threat, which lets them block it.
  • Rushing the end. With six squares left, count every column before you drop. Hard, which looks 5 moves ahead, punishes one careless disc.
Play the last six squares slowly against HardOpens a game against the computer on Hard. Free, no account.

How we made this guide: our own numbers come from our computer players, playing hundreds or thousands of games against each other in the same code the site runs. We checked each number against those games.

Did you like this guide?

Play Four in a Row now

Play on ScampLabsFour in a RowAgainst the computer on Medium. Free, no account.▶ Play nowInvite a friend