Four in a Row

Take turns dropping counters. The first to line up four of their colour wins.

Free, no sign-up Runs in your browser, nothing saved

Scoreboard

You to play
  • Your wins0
  • Computer wins0
  • Draws0

Blue goes first. The scoreboard lasts until you change the opponent or leave the page.

How to play

  1. Take turns dropping a counter into one of the seven columns. It falls to the lowest empty space.
  2. Get four in a row of your colour: across, up and down, or diagonally.
  3. Block your opponent when they have three in a row with a space to finish it.
  4. If the board fills up with no four in a row, the game is a draw.

How strong is the computer?

LevelHow it plays
EasyLooks at its own next move only, and about a third of the time plays a random column.
MediumLooks 3 moves ahead (its move, your reply, its next move).
HardLooks 6 moves ahead. It always takes a winning move and blocks yours when it sees one.

When it isn't sure, the computer prefers the middle columns, because a counter there can be part of more lines of four.

Worked example

There are 69 possible lines of four on a 7 × 6 board:

DirectionWorkingLines
Across4 starting places in each of 6 rows24
Up and down3 starting places in each of 7 columns21
Diagonal (each way)12 + 1224
Total24 + 21 + 2469

A counter in the bottom-middle space is part of 7 of those lines, while a corner counter is part of only 3. That's why the middle column is the strongest place to start.

Tips to win

  • Start in the middle column.
  • Make two threats at once. If you have two different places that would each finish four, your opponent can only block one.
  • Watch the space underneath. Don't drop a counter that lets your opponent play on top of it into a winning space.

Frequently asked questions

Can I play against a friend?

Yes. Choose "2 players" and take turns on the same phone or computer.

Is this Connect 4?

It's the same kind of game, often called four in a row. We wrote our own version from scratch, and it isn't connected with any other company's game.

Can I play with a keyboard?

Yes. Use Tab to reach the arrow buttons above each column and press Enter to drop a counter there.

Keep going

Related tools

All games

Just for fun: these games run in your browser and save nothing, so scores are forgotten when you close or reload the page. Speeds and times include your own device's delay, so treat them as a rough guide, not a medical or professional test. Read the full disclaimer.

Last updated: