About Four in a Row
The game in brief
Four in a Row (四子棋) is played on a grid that stands upright: seven columns, six rows deep. Gold and Jade take turns to drop one disc into a column, and the disc falls to the lowest empty hole in it. Gold always goes first.
The first side to get four of its discs in an unbroken line wins: across, up and down, or diagonally. A longer line counts too. A full column takes no more discs, and if all 42 holes fill up without a four, the game is a draw.
What makes it different from noughts and crosses
Because discs fall, you can only ever play on top of a column, never in a hole of your choice. That one rule changes everything. A hole you need may not be reachable yet, and the disc you drop also decides who gets to play the hole just above it.
- Threat: an empty hole that would finish four for one side. If it is playable now, the other side must block it at once.
- Waiting threat: a threat with an empty hole below it. Nobody wants to fill the hole underneath, because whoever does hands the threat over.
- Double threat: two playable threats at the same time. Only one can be blocked, so the other wins. Most games end this way.
Playing here
Click or tap anywhere in a column to drop a disc into it. With a mouse, a faded disc shows where it will land. With a keyboard, press 1 to 7 to drop into that column, or use the arrow keys to move between columns and Enter or Space to drop. The last disc played has a white dot, and a win rings the four discs and draws a line through them.
Play vs Computer as Gold or Jade, or choose 2 players to share one device. The computer runs in your browser and has five levels:
- Beginner always takes a win in one and usually blocks yours, but looks no further, picks loosely, and about one move in three is a random column.
- Easy looks three moves ahead with some randomness, and one move in ten is random.
- Medium looks five moves ahead with a little randomness.
- Hard looks up to ten moves ahead and always plays what it thinks is best.
- Expert searches much deeper, for up to two and a half seconds a move, and from about a third of the way through the game it usually sees all the way to the end.
Beat the computer and the number of discs you dropped goes on that level's top-10 leaderboard, fewest first. Undo takes back your last disc and the computer's reply, but a game where you used it isn't scored.
Tips
- Start in the middle. The centre column is part of more possible lines than any other, and the stronger computer levels open there when they play first.
- Before every move, look at the hole just above where your disc will land. If the other side would win there, that column is poison for now.
- Build threats on different rows. Two threats stacked one above the other in the same column often win on their own: blocking the lower one gives you the upper one.
- Count the diagonals. They are the lines people miss most, for both colours.
- When the grid fills up, think about who will be forced to play under a waiting threat. Late in the game, the side with more safe moves left usually wins.
Frequently asked questions
- Does the first player have an advantage?
- Yes. On the standard 7 by 6 grid, the first player can always win with perfect play by starting in the middle column. Play as Jade for a harder game against the computer.
- Can I win with more than four in a line?
- Yes. Five, six or seven in a line counts as a win, and one disc can finish two lines at once. Every winning line is marked.
- What happens if the grid fills up?
- It is a draw. Against the computer a draw earns some EXP but no money either way, and it doesn't go on the leaderboard.
- Is it free, and do I need an account?
- It is free in your browser with no download or account. Signing in adds the online leaderboards, EXP and money.