한국어

Four in a Row

Drop discs and line up four of your color first

Line up four in any direction

Take turns dropping discs into a 7 by 6 upright grid. The first to connect four of one color in a line wins.

Controls

Tap or click a column to drop
← → to pick a column · Enter to drop
Keys 1 to 7 drop straight in
Undo (Ctrl+Z) · Hint (H)

How do you play Four in a Row?

Two players take turns dropping discs into an upright grid, and the first to line up four discs of their color horizontally, vertically or diagonally wins. It plays exactly like the classic boxed game many people know as Connect Four.

The grid is 7 columns wide and 6 rows tall, 42 spaces in all. Each disc falls to the lowest empty space in its column, so every column has only one playable spot at a time.

What are the rules?

Grid7 columns × 6 rows, 42 spaces
MovesOn your turn, pick a column and drop one disc. A full column cannot be played.
WinningFour of your discs in a row across, up and down, or diagonally wins at once.
DrawIf all 42 spaces fill up with no line of four, the game is a draw.
First moveAgainst the computer you choose who goes first. In two player games, Yellow starts.

How do the computer levels differ?

Easy makes the odd mistake, Normal looks a few moves ahead, and Hard searches as deep as it can in its thinking time. Hard uses alpha beta pruning with a transposition table and often reads more than ten moves ahead, so it is tough to beat.

Tips for winning

  1. Take the center column. Column 4 is part of more horizontal and diagonal lines than any other.
  2. Build two threats at once. Your opponent can only block one, so a double threat wins.
  3. Never fill the space right under an enemy threat. That just hands them the winning spot on top.
  4. Think about odd and even rows. Counting from the bottom, threats on odd rows favor the first player and even rows favor the second player late in the game.

This game is solved. James Dow Allen and Victor Allis independently showed in 1988 that the first player wins with perfect play by starting in the center column. Your record for each level is saved in this browser.

Frequently asked questions

Is Four in a Row free?

Yes. Play it free right on this page with no download or sign up, on computers, phones and tablets.

Is this the same as Connect Four?

It uses the same rules: drop discs into a 7 by 6 grid and connect four. The board, discs and sounds are all made by ormgames.

How is it different from Gomoku?

In Gomoku you place stones anywhere and need five in a row. Here discs drop to the bottom of a column, so each column has only one playable space, and four in a row is enough.

Can two people play?

Yes. Choose Two players on the start screen and take turns as Yellow and Blue on one device.

How many times can I undo?

As many as you like. Against the computer, undo takes back the computer's move and yours together so it is your turn again.

Does going first give an advantage?

Yes. The game has been solved, and the first player always wins with perfect play starting in the center column. That is why you can switch who moves first.

Is my record saved?

Your wins, losses and draws for Easy, Normal and Hard, plus your two player tally, are saved in this browser.