How to play Four in a Row
The board stands upright with seven columns and six rows. Players take turns choosing a column; their disc falls to the lowest empty space in that column. The first player to get four of their discs in an unbroken line, across, up and down, or diagonally, wins. If all 42 spaces fill up without a line of four, the game is a draw.
In two-player mode, Red and Yellow share the same device. Against the computer you play Red. The player who moves first alternates every game, because moving first is a real advantage.
Computer levels
- Easy looks only at its own next move and sometimes plays randomly. Good for learning the game.
- Medium looks three moves ahead. It will block your obvious threats and spot short combinations.
- Hard looks six moves ahead using a search technique called alpha-beta pruning. It's a strong opponent that punishes loose play.
Strategy tips
- Own the centre column. The middle column is part of more possible lines of four than any other. Starting there, and keeping a presence there, gives you the most options.
- Think in threats, not lines. A "threat" is a spot where, if you got to play, you'd complete four. The goal is to create threats your opponent can't block in time.
- Watch what's underneath. A threat only matters when the space below it fills up. Don't play a disc that lets your opponent drop into their winning spot on top of it.
- Make two threats at once. Just like a fork in tic-tac-toe, two threats that your opponent can't both stop usually win the game.
- Stacked threats are deadly. Two of your threats directly on top of each other in one column means your opponent must block the lower one, and you then win on the upper one.
For the deeper ideas, including why odd and even rows matter, read Four in a Row strategy: centre control, threats and timing.
A solved game
Vertical four-in-a-row games were sold commercially from the 1970s, but connection games on grids are much older. In 1988 two researchers, James D. Allen and Victor Allis, working separately, each proved with computer help that on the standard 7 × 6 board the first player can always force a win by starting in the centre column. Don't worry, it takes extremely precise play to pull that off, and neither humans nor our "Hard" computer play perfectly.
Frequently asked questions
Who goes first?
The first move alternates between Red and Yellow every game. Against the computer, you’re always Red.
Can the first player always win?
In theory, yes: with perfect play, the first player wins by starting in the centre. In practice, it requires such precise moves that real games go either way.
How does Undo work against the computer?
Undo removes your last move and the computer’s reply, so it’s your turn again.