Skip to main content
Board & Strategy game1–2 playersTouchHow to play
Preparing workspace

Four in a Row

Play Four in a Row against the computer or a friend on one 7×6 board. Choose a single round or a match to two or three wins.

Still loading. If the tool doesn’t appear, reload this page.

How to play Four in a Row

Keyboard
Left/Right (or A/D) aim, Enter/Space/Down drops a disc, P pauses.
Touch
Tap any column to drop a disc there.
Mouse
Hover to aim and click a column to drop.

Tips

  • Control the centre column: it takes part in the most possible lines.
  • Build threats on two different rows so one block can't stop both.

About this tool

Four in a Row

Connect four discs against the computer or a friend. Play single rounds or matches to two or three wins.

Drop discs to the lowest open cell in a 7-column by 6-row board and connect four horizontally, vertically or diagonally. Play against a computer opponent at three difficulty levels or share the board with another player. Choose a single round or a match to two or three wins, with alternating starters and a running tally.

How to use Four in a Row

  1. Choose vs AI or 2 Players, then pick Single round, First to 2 or First to 3. In vs AI, select Easy, Medium or Hard.

  2. Press Start game, then click a column or aim with the Left and Right arrow keys and drop a disc with Enter or Space into the 7x6 board.

  3. The board highlights the winning line. Select Review moves to step through the round. Continue with Next round during a match or Start rematch after the match ends.

Why use Four in a Row

  • Three AI difficulty levels

    Easy, Medium and Hard search 2, 4 and 6 moves ahead.

  • Single rounds and matches

    Play to two or three wins in either mode. A draw advances the round count while each player's win total stays the same.

  • Winning line shown, streak tracked

    Completed fours are highlighted on the board, and consecutive wins against the AI are recorded as a personal best streak.

Common use cases

  • Practising against a stronger engine before a family tournament — start on Easy at 2-ply, then move up to Hard's 6-ply search once you stop losing
  • Handing a phone or laptop to a friend on a train and playing pass-and-play on one board instead of installing anything
  • Learning why the centre column matters, by watching the AI keep taking column 4 and seeing your open threats scored against you

Frequently asked questions

How big is the board and how do you win?

The board is 7 columns by 6 rows, 42 cells in total, and you win by connecting four of your discs in a row horizontally, vertically or diagonally. Discs drop to the lowest empty cell in the column you pick, so you only ever choose a column, never a square.

Link to answer
How hard is the AI on each setting?

Easy searches 2 moves ahead, Medium 4 and Hard 6. Each move in this count is one player's turn. Hard explores the consequences of a move farther ahead.

Link to answer
Can two people play on the same device?

Yes. Choose 2 Players to take turns on the same device. The running tally shows wins for both players and a separate draw count.

Link to answer
How do matches and rematches work?

Select First to 2 or First to 3 before starting. The first player to reach the selected number of wins takes the match. Players alternate who starts each round, and draws only add to the draw count. Start rematch clears the match tally and keeps the mode, difficulty and win target.

Link to answer
Can I review moves after a Four in a Row round?

Yes. After the round ends, select Review moves. Previous and Next step through each drop, with the player and column shown for that move. First opens the empty board and Final returns to the result. You can review both computer and two-player rounds while keeping the score and tally.

Link to answer
Why does the computer keep playing the middle column?

The centre column sits in more possible winning lines than any other, so the evaluation adds a bonus for every disc there and the search tries centre columns first. That ordering also makes alpha-beta pruning cut more branches, which is why Hard stays responsive at 6 plies.

Link to answer