Gomoku, also called Five in a Row, is won by building an unbroken line of five stones while stopping your opponent's threats. Play Gomoku (Five in a Row) free in your browser against adjustable AI. No download or account.
Three rule sets on one board — Freestyle, Exactly Five and forbidden moves — and a move on a forbidden point is refused with the reason. Hint marks the forcing move; a new puzzle lands daily.
How You WinBe the first to place five of your stones in an unbroken horizontal, vertical, or diagonal line. If the board fills with no such line, the game is a draw.
Hint marks a recommended move on the board and shows the search depth and score; Undo takes back the last round. After the game, Review opens it from History move by move, and Analyze finds a forced win you missed or a move that handed your opponent one, and marks a better point on the board.
It is free, with no download and no account: the board opens in the browser on a computer or a phone. The Gomoku AI runs on your own device, and an unfinished game comes back when you return in the same browser.
Yes. Set Side to 2 players and take turns on the same phone or computer, Black first and at the near side; Undo takes back one move at a time. There is no computer in a two-player game, so the Level row is hidden, and you can switch back to playing the computer mid-game and carry on from the same position. There are no online rooms, so you cannot play someone who is not with you.
Yes. Choose Black or White under Side and the computer takes the other colour. There are eight levels and a first visit starts at level 2; start at 1 or 2 if you are new, and move up when you win comfortably. You can change the level mid-game, and the next move uses the new one.
A Gomoku search engine written for this site: alpha-beta search with PVS that reads shapes under the rules you chose and searches deeper at higher levels. Hint uses the same engine. Everything runs locally in your browser, with no server involved.
Freestyle is the default: five or more in a row wins. Exactly Five needs exactly five, so an overline of six or more does not win. Forbidden Moves limits Black only: Black must make exactly five and may not play a double three, a double four or an overline, while White has no limits, which offsets Black's first-move advantage (this rule set is still marked Preview). A stone on a forbidden point is refused, with the kind of forbidden move named. Changing the rules starts a new game.
Yes. Puzzles & practice has more than 300 Gomoku puzzles on fives, open threes, fours and forced wins. Work through them as a level path of 60 stages, or solve the daily puzzle. They are free and need no account.
Yes. Review opens History, where finished and abandoned games on this device can be replayed move by move, with your wins, draws and losses against each AI level. Analyze looks for two kinds of mistake — missing a forced win of your own, or handing your opponent one — and marks a better point on the board. Games are stored only in your browser.
No. Hint can be used on any move: it marks a recommended move on the board and shows the search depth and score. Undo takes back the last round against the computer and one move in a two-player game, and can be pressed again to go further back.
Open near the centre, where all four directions are free. Before each move check three things: can you make five, can your opponent make five, and does your opponent have an open three; deal with whichever applies first. Attacks come from one move that makes two threats — the four-three is the most common, and under Freestyle Black may also use double threes and double fours. The full rules page covers the shapes and winning patterns, and the puzzles let you practise them one by one.
Gomoku is five in a row, which is what this page plays. Tournament Renju adds special opening rules on top of Black's forbidden moves; the Forbidden Moves option here has the forbidden moves but not the opening rules. Gomoku borrows the board and stones of Go but is an entirely different game, and Go has its own page on this site.
Loading…