cools maths gamesSurprise me

Four in a Row

Drop discs into a seven-column grid and be first to line up four of your color.

Four in a Row title screen
  • Works on mobile
Report a problem

Four in a Row puts a standing grid, seven columns wide and six rows tall, between two players. One side drops black discs and the other drops white, one per turn, and whoever links four of their own first takes the round. The line can be flat, upright or diagonal.

How Four in a Row Works

Black always opens. When it is your move, choose a column. Clicking any cell in it works, since the disc falls to the lowest open slot. Each column shows a shaded landing cell, marked in its corner, so you can see where a disc would stop. A column that is full cannot take more.

Four touching discs of one color in an unbroken line win at once. A full grid with no winner counts as a tie. Easy drops discs at random, Medium checks one move ahead with a dash of chance, and Hard looks far down the game tree and likes to set up two threats together.

Choosing 2 Player (local) removes the computer so two people share one screen, and the status line keeps track of who is up.

Your First Few Minutes

  1. Choose vs Computer, pick black, set Easy and press New game.
  2. Drop your first disc in the middle column.
  3. After each drop, check whether the computer has three in a line.
  4. Try to set up two different spots where one more disc would win.
  5. Move up to Medium once you win most games on Easy.

Controls for Four in a Row

Keyboard, mouse and touch controls for Four in a Row
To do thisKeyboardMouseTouch screen
Drop a discArrow keys to reach a column, Enter to dropClick any cell in the columnTap any cell in the column
Pick a game modenot usedClick "2 Player (local)" or "vs Computer"Tap "2 Player (local)" or "vs Computer"
Start a game against the computernot usedChoose a disc color and level, then click "New game"Choose a disc color and level, then tap "New game"
Take back your last movenot usedClick "Undo"Tap "Undo"
Give up the current gamenot usedClick "Resign"Tap "Resign"

What It Trains

You plan a few drops ahead and imagine where each disc will land, which builds strategy and spatial sense. Blocking also needs logic, since you must spot when filling a slot would give your opponent the cell right above it.

Strategy Notes

  • Own the center. The middle column is part of more possible lines than any other.
  • Make double threats. One open three is easy to stop, but two winning cells cannot both be blocked.
  • Do not fill under a threat. Dropping right below your opponent’s winning slot hands it to them.
  • Think about row parity. Counting up from the bottom, black usually profits from threats on odd rows in the endgame, while white profits from even ones.
  • Scan the slants. Diagonal lines are the ones most often missed, by both sides.

Good to Know

Christopher Müller built this version for his open-source PaperGames set, using simple discs with strong contrast. It works with mouse, touch or keyboard and fits a phone. A check pops up before you resign or restart, so a stray tap will not end your round.

Four in a Row questions and answers

How does a round end?

A round ends as soon as one player has four discs touching in a straight line, whether flat, upright or diagonal. When all 42 slots are taken and nobody has four, it is a tie. Resign also ends it right away.

Can I choose who goes first?

Yes. Black always opens, so take black against the computer if you want the opening move, or white if you want it to lead. Pick a level and start a new game.

What does Undo do against the computer?

It takes back your last disc and also the reply the computer made to it, so you are back at your own turn. That makes it easy to test a different column.

Can I adjust how the board looks?

Yes. Settings let you enlarge the text, switch on a high contrast look and slow down or speed up the computer. A round you leave halfway is also remembered, so a reload drops you back into the same position.

Games that use planning ahead like Four in a Row

Different rules, same kind of thinking.

Try something from another shelf