Gomoku (Five in a Row)
Line up five to win โ invite a friend by link
Loadingโฆ
About this tool
Take turns placing stones on the intersections of a 15x15 board; the first to line up five in a row - horizontally, vertically, or diagonally - wins. For example, if Black lines up five stones in a single column, the game ends right there and those five stones glow gold. There are no forbidden moves (no double-three or double-four bans), and six or more in a row still counts as a win (free-style gomoku). The first two people to join take the seats; everyone after that watches. Illegal moves are rejected by the very same rules file the server uses, so tampering with dev tools cannot break the rules. The computer opponent does not look ahead - it scores the shape around existing stones (open threes, open fours, and so on) and picks in one pass, only rechecking its top eight candidates one move deeper on Hard.
How to use
- The board appears the moment you open it. On your own you can place stones for both sides, so you can play across one screen with someone facing you, or just practise.
- Pick an opponent on the setup screen - Solo, CPU, or Online - then press "Play" (โถ).
- If you chose CPU, set the difficulty first (Easy, Normal, Hard). Easy defends less and plays more erratically; Hard rechecks its top eight candidates one move deeper.
- If you chose Online, send the invite link. Whoever opens it first becomes your opponent; anyone after that just watches.
- Tap an empty intersection to place a stone immediately - there is no separate select-then-confirm step.
- Lining up five (or more) ends the game instantly and that row glows gold. You can press "Undo" at any time to take back the last move (your opponent must accept it online), or "Resign" to end early.
- Once a game ends, press "OK". In an online room you can start another with "Play"; who moves first is decided at random the moment both seats fill, not by who joined first.
Frequently asked questions
- Why does nothing happen when I tap?
- If it's your opponent's turn, nothing is placed. If you're only watching, you can't move at all. The server remembers who took the seats, so editing the page won't let you move on someone else's turn.
- What if more than two people join?
- The first two play and the rest watch. Watchers get the same live connection, so they see each move as it lands.
- Are there forbidden moves like double-three?
- No. Being blocked without an explanation is more frustrating than helpful here. Six or more in a row also counts as a win (free-style gomoku).
- How do the computer's difficulty levels differ?
- It doesn't look ahead - it scores the shape a move would create (open threes, open fours, and so on). Easy weighs defense at only 35% and adds a lot of randomness, so it leaves openings. Hard rechecks its top eight candidates one move deeper, subtracting your best possible reply.
- Can I take back a move?
- Yes. Playing solo or against the computer, pressing Undo immediately returns to your last turn (including the computer's move, if it just moved). In an online room, a request has to be accepted by your opponent, and only the single most recent move can be undone at a time.
- Who plays first (Black) in an online game?
- It isn't decided by join order - the server picks randomly the moment both seats are filled. So the person who created the room isn't always first to move. After a game ends, pressing New game swaps the two seats, so whoever played second this time goes first in the next one.
- I tapped the wrong intersection - can I cancel it?
- Tapping an empty point places a stone immediately, with no confirm step. The only way back is Undo.
- What happens if all 225 points fill up with no winner?
- If the board fills completely without five in a row, the game ends in a draw.
- What shows up on screen when I win or lose?
- The winning five (or more) stones glow gold. The losing side's screen shakes, but only in a game against another person - playing solo, you're moving both sides, so losing doesn't apply.