All games

Four in a row

Drop discs and line up four on a 7 by 6 board: against a computer from easy to hard, a friend on one device, or friends live or by link. Free, with no account or uploads.

Reaches other sites: online play goes through relays that cannot read anything · Check it yourself

Your turn: you are Black

Four in a row wins. Press any square of a column to drop a disc.

You
0
Draws
0
Computer
0
How to play

How it works

  1. 1Drop a disc in a columnPress any square of a column: the disc falls to the lowest free place. Black goes first.
  2. 2Make four in a rowFour of your discs in a row, across, down or diagonally, win. A full board is a draw.
  3. 3Watch for double threatsTwo places that would each make four cannot both be blocked.

The game runs in your browser. Nothing you play is sent anywhere but to the friends you play online, and there are no adverts.

Every option explained

A little help along the way

Follow these steps. Every option is explained underneath. The game runs in your browser; nothing is sent anywhere.

  1. Choose who you playThe computer is the usual, at Medium; Easy to learn and Hard for a real game. Here together takes turns on this device; Friends online plays friends anywhere, live in a room or taking turns by link.
  2. Drop a disc in a columnPress any square of a column: the disc falls to the lowest free place. Black goes first.
  3. Make four in a rowFour of your discs in a row, across, down or diagonally, win. A full board is a draw.
  4. Watch for double threatsTwo places that would each make four cannot both be blocked.
Every option explained
Keys
Arrow keys move between squares; Enter or Space plays the square you are on; H asks for a hint, U takes back a move and N starts a new game. Keys act while the board has the focus.
On a phone
Tap a square to play there; the squares are large enough on a phone.
The computer
It searches ahead (alpha-beta), columns from the middle out: two moves at Easy, five at Medium, eight at Hard, scoring each board by the lines of four still open to one side. It always takes a win. Four in a row is solved, but this computer searches to a depth and does not play perfectly.
Hints
Hint asks the computer at Hard where it would play, and marks that square. It is a strong move, not a proven best one.
Friends online
Write your name, make a room link and send it. Everyone who opens it writes their name and joins. Two play each game and everyone else watches; outside a series the winner stays on and the next in line plays, and every move shows on every screen at once. The host's browser holds the room: it checks every move and starts each game. If the host leaves, the next person in the room takes over and the game goes on. Under Score, play a best of 3, 5 or 7, or keep a running score; a turn clock makes a turn that runs out of time lose the game, and Play again asks for another game, which starts once everyone who played has asked. Send a reaction from the row under the board, or chat. Browsers connect directly where networks allow (asking Google's or Cloudflare's address-lookup service for the network address, which the others in the room can see); otherwise moves go through public relays, sealed with a key in the link so that the relays cannot read them. Nobody needs an account, and nothing goes through a server of ours.
Taking turns by link
Under Friends online, choose Take turns by link instead. Make your move, then copy or share the link. Your friend opens it, presses Play your move, and sends the new link back. The game is in the link after the #, so nothing goes through a server; anyone with the link can see the game.
Kept
The scores last until you leave the page. With “Keep my scores on this device” on, they are kept in this browser only, until you turn it off.
Read the step-by-step guide