GENRES AND MECHANICS
N-in-a-row games (the gomoku family)
Get n of your colour in a line. The simplest rule produces some of the sharpest fights.
Tic-tac-toe in the corner of a notebook, Connect Four with its falling discs, gomoku on a go board — all are games of being first to get n stones of one colour in a row, horizontally, vertically or diagonally. Together they are called n-in-a-row games.
Anyone grasps the rules at once, but this family holds some of game theory’s most important stories: why the first player is usually better off, which rules were added because of it, and which moves you should actually aim for.
Last updated · 2026-11-26
Board size and n change everything
An n-in-a-row game is largely defined by two numbers: how big the board is and how many you need to connect.
| Game | Board | n | With perfect play |
|---|---|---|---|
| Tic-tac-toe | 3×3 | 3 | Draw |
| Connect Four | 7 wide × 6 high, filled from the bottom | 4 | First player wins (proven 1988) |
| Free-style gomoku | 15×15 | 5 or more | First player wins (proven early 1990s) |
| Renju | 15×15, restrictions on Black | 5 | Not solved under tournament opening rules |
A small board with a large n makes blocking easy, so games lean toward draws. A wide board with a moderate n lets the first player keep creating attacks, so games lean toward first-player wins. Gomoku is exactly that case.
How games are won: double threats
You almost never win by simply extending a line — your opponent blocks the end. You win by making two threats with one move. They can block only one, so the other completes.
Gomoku vocabulary
- Four: a shape one move from five. It must be blocked.
- Open three: a three with both ends free that can become an unblockable open four next move. It also has to be answered.
- Four-three: a move that makes a four and an open three at once — the classic winning move.
- Double three / double four: two open threes, or two fours, from one move.
So practical gomoku is a chain of moves your opponent must answer, steering their blocking stones to useless places, until a double threat breaks through. Such forcing sequences are often written as VCF or VCT (victory by continuous fours, or threes).
Why forbidden moves exist
Gomoku’s board is wide, so Black, moving first, is too strong. Computer analysis even proved that unrestricted gomoku is a forced win for Black, and players had long known Black’s edge in practice.
Forbidden moves came in to reduce that imbalance. In renju, the tournament form of the game, only Black is barred from double threes, double fours and lines of six or more. Tying up Black’s strongest weapons gives White a chance; opening rules that fix where the first few stones go add more balance.
Mixing other mechanics into a line game
N-in-a-row is a great skeleton for other mechanics. A few variants show how wide the family is.
- Gravity: when discs stack from the bottom, as in Connect Four, you cannot play any cell you like, so who is forced to fill the cell just below a key square matters.
- Covering: when big pieces can cover small ones, as in Gobblet Gobblers, a finished line can be overturned.
- Moving: when pieces move after placement, as in nine men’s morris, you get a rhythm of breaking a line and remaking it.
- Hiding, flipping, bidding: hide sides, flip flanked stones or buy stones with points and it becomes a different game.
Who it suits
Anyone who wants to start without a rules lecture and enjoys short, sharp fights. Miss one threat and the game ends in a move, so focus matters, but games are short and decisive. Unlike go or chess, you do not need long study: learn to make two threats at once and you improve fast.
On PUZZLTHINK
PUZZLTHINK has many games that put one extra mechanic on a gomoku skeleton. In Flip Omok, flanked stones flip to your colour, so lines appear and vanish in a move; only exactly five wins and double threes are barred for both. Point Omok decides who gets each spot by a points bid, and in Blind Gomoku you cannot see whose stone is whose, so memory becomes skill.
For three in a row there is 4 Player 3 In a Row, stacking on a 4×4 board; Russian Janggi, where big pieces cover small ones; and Nine Men’s Morris, where a line captures.
Try it on PUZZLTHINK
Games here that share what this article is about. Play one and see it for yourself.
Flip Omok
Gomoku with flanking flips. Only exactly five counts, and not a five that uses a stone you just flipped.
Point Omok
Gomoku where stones are bought with points: line-making plus bidding psychology.
Blind Gomoku
Gomoku where you cannot see whose stone is whose — you have to remember to see the lines.
4 Player 3 In a Row
Four-player three in a row on a 4×4 board with stacks up to three high; only what shows from above counts.
Russian Janggi
Three in a row on 3×3 where big pieces cover small ones — moving can uncover a line.
Nine Men's Morris
The classic where three in a line (a mill) captures an enemy piece.
Read next
Lineages and history
Gomoku and renju
From five-in-a-row to tournament renju: the name, the forbidden moves only Black has, and what “gomoku is solved” really means.
Concepts and terms
Why does moving first help?
The weight of the first move and how games lighten it: White’s chess score, komi, renju restrictions, the pie rule, and games the second player wins.
Concepts and terms
Solved games
Games whose perfect play is known: the three levels of solution, results from tic-tac-toe to checkers and Othello, and why chess and go remain open.
Genres and mechanics
Abstract strategy games
The genre where reading ahead is everything: no dice, nothing hidden. From go and chess to Wallgo — what makes it fun and what it asks of you.
Lineages and history
Nine men’s morris and the morris family
The classic where three in a line takes a piece: Roman-era records, the doubted Egyptian origin, morris in Shakespeare, and the result that it is a draw.
Sources
Consulted to check the facts. The text itself is written by PUZZLTHINK.
- · Go-Moku Solved (summary and references) — UC Irvine, David Eppstein
- · Go-moku family of games — ICGA
- · Solved game — Wikipedia
- · Connect Four — Wikipedia
- · Renju — Wikipedia
- · The rules and the history of Renju — Renju International Federation
- · Gobblet Gobblers rules — Blue Orange Games