
Gomoku
Black and white stones, five in a row.
- Strategy
- Connect
- 2 players
- Length
- About 10 min
- Complexity
- Luck
Loading games…
How to play
Be the first to line up five stones in a row on a 15×15 board.
- 1Players take turns placing one stone of their color on an empty intersection of the grid board. Stones never move or capture once placed.
- 2Aim for an unbroken line of five stones horizontally, vertically, or along either diagonal.
- 3The first player to form a continuous line of five stones wins. Agree beforehand on whether overlines count and whether opening swap rules apply.
Full rules (technical)
Gomoku Rules
Gomoku is a two-player connection game on a 15×15 intersection board. On TabletopMCP, Black moves first under freestyle rules (five or more stones in a row wins). When playing elsewhere or under Renju rules, agree on the board size, overline rules and opening procedure beforehand.
Board and stones
A common board has 15 horizontal and 15 vertical lines, making 225 intersections. Some casual games use a 19×19 Go board. The two players use black and white stones. A stone goes on an empty intersection, not inside a square.
Players normally alternate, placing one stone per turn. Once placed, a stone stays there: there is no movement or capture. Black normally moves first after the opening procedure has assigned the colors. Some opening systems require a center move; that requirement is not universal to all Gomoku rules.
Winning patterns
A line must be unbroken and use one color. It can run horizontally, vertically, or along either diagonal. Common versions treat longer lines differently:
- Freestyle: five or more consecutive stones win for either color.
- Exact five: exactly five consecutive stones win; six or more do not.
- Renju: Black also has forbidden-pattern rules, including double-threes, double-fours and overlines. Formal Renju rules define the detailed exceptions. White does not have these additional restrictions and can win with an overline.
Do not apply Renju restrictions automatically to a casual Gomoku game.
Openings and draws
Swap2 is an opening procedure intended to reduce first-move advantage. One player places two black stones and one white stone. The other may choose a color, or place two more stones and let the opening player choose. The agreed winning-pattern rules still apply afterward.
If every intersection is occupied and neither player has won under the agreed rules, the game is drawn.
Gomoku questions
Can I play Gomoku online on TabletopMCP right now?
Yes. Open a free 3D 15×15 Gomoku table right in your browser to play against a friend, a built-in AI bot, or your own MCP AI agent with no download or signup.
How do you win at Gomoku?
A player wins by aligning five stones of their color in an unbroken row—horizontally, vertically, or diagonally. Before starting, players should agree on whether lines of six or more stones (overlines) count as a win.
Can stones be moved or captured after being placed?
No. Unlike Chess or Checkers, Gomoku stones are placed on empty intersections and remain fixed for the rest of the game. Stones are never moved, jumped over, or captured.
Why are some boards 15×15 and others 19×19?
A 15×15-line board has 225 intersections and is commonly used for Gomoku and Renju. Some casual games use a 19×19 Go board with 361 intersections. Board size and the adopted rules should be agreed before play.
What is the difference between freestyle Gomoku, exact-five, and Renju?
Freestyle Gomoku accepts a line of five or more. Exact-five rules require exactly five. Renju adds forbidden-pattern rules for Black, including double-threes, double-fours and overlines; White does not have those extra restrictions.
Can I invite an AI assistant to play Gomoku?
Yes. Create a Gomoku room on this page and share an open seat link with an MCP-compatible AI assistant, or play against the built-in bot right away.
About the game
Origin and history
Gomoku belongs to East Asian five-in-a-row traditions and often shares its board and black-and-white stones with Go. The sources reviewed here do not establish one inventor or a precise date of invention.
The international name comes from Japanese gomoku-narabe (五目並べ), meaning arranging five. Competitive play developed additional opening procedures and restrictions intended to reduce first-move advantage. Renju is a related competitive form with its own rules.
Regional rules
Freestyle Gomoku
Casual ruleFive or more continuous stones of the same color win the game. Overlines (lines of six or more stones) count as a valid victory for both players.
Standard / Exact-Five
Win conditionOnly an unbroken line of exactly five stones wins. Overlines of six or more stones do not grant victory, and the game continues.
Renju (Competitive)
Tournament standardRenju adds forbidden-pattern rules for Black, including double-threes, double-fours and overlines. The formal rules define the detailed exceptions. White has none of these additional restrictions and can win with an overline.
Swap2 Opening
Opening protocolSwap2 balances the opening rather than defining a new winning pattern. One player places two black stones and one white stone; the other can take White, take Black, or offer two more stones before the first player chooses a color.
Invite your AI to play
Create a Gomoku room, then send an open seat link to your own AI assistant to challenge it on the 15×15 board.
References
- What is Renju? ↗· RenjuNet / Renju International Federation · Introduces intersection play and explains the additional restrictions used in Renju.
- Gomoku – Swap 2 Rule ↗· RenjuNet / Renju International Federation · Describes the initial stones and the choices offered by the Swap2 opening.
- Go-Moku, Chapter 5 ↗· L. Victor Allis · Discusses the 15×15 board, overlines, and differences between freestyle, standard Gomoku and Renju.
- Gomoku ↗· Wikipedia · Overview of the Japanese name, board sizes and common rule variations.
This page is an original overview; the sources above are references only. Rules differ between sets, so check the one you own.