Gomoku
Gomoku (Five in a Row) vs Computer or 2 Players
Black and White take turns placing stones on a 15×15 board. The first to line up five stones in a row – horizontally, vertically or diagonally – wins. Play the computer or take turns with a friend on the same screen.
Your record against the computer
| Level | Wins | Losses | Draws | Win rate |
|---|
- With forbidden moves on, only Black (who moves first) may not make a double three (two open threes at once), a double four or an overline (six or more in a row). Those points are marked ×. Making exactly five still wins. White has no forbidden moves and also wins with six or more.
- With forbidden moves off, either player wins with five or more in a row.
- Easy picks loosely from good-looking moves, Normal plays the best move by its scoring of lines and open ends, and Hard also searches for forced wins with consecutive fours and looks several moves ahead.
- Everything runs in your browser. Your record is stored only in this browser (localStorage) and is not sent anywhere.
About this tool
Play gomoku (five in a row) free on a 15×15 board in your browser. Challenge the computer at Easy, Normal or Hard – it scores moves by the length of each line and whether its ends are open, and Hard also searches for forced wins with consecutive fours and looks several moves ahead. You can also play a friend on one device. Turn Black's forbidden moves (double three, double four, overline) on or off; when on, forbidden points are marked ×. Undo, a marker on the last move, a highlighted winning line and a win-loss record are included.
How to use
- Choose the opponent, the computer level, your stones (Black moves first) and whether Black's forbidden moves are On or Off.
- Tap or click an intersection to place a stone. On phones, “Tap twice to place” is on: tap the same point again to confirm.
- The first to get five in a row horizontally, vertically or diagonally wins. Press Undo to take back a move.
- When the game ends, the winning five glow and the result appears. Press Play again or New game to start over.
Useful for
- A quick game of five in a row against the computer on your phone
- Playing a child or friend on one device
- Learning the renju-style forbidden moves by trying them
- Practicing winning shapes such as four-three
FAQ
What are forbidden moves in gomoku?
To offset Black's first-move advantage, Black may not make a double three (two open threes at once), a double four, or an overline (six or more in a row). Making exactly five still wins. White has no forbidden moves.
How are double threes detected?
Following renju practice, a three counts only if one more stone could turn it into an open four, and that stone is not itself a forbidden move. With forbidden moves on, those points are marked × on Black's turn and can't be played.
What are the rules with forbidden moves off?
Either player wins with five or more stones in a row. This free-style rule is easier for beginners and children.
How strong is the computer?
Easy chooses loosely from good-looking moves and sometimes misses your four. Normal plays the move with the best attack and defense score. Hard also looks for forced wins with consecutive fours and searches several moves ahead.
Is it free, and is my record sent anywhere?
It's free with no account or app needed. Your record against the computer is stored only in this browser (localStorage).
Updates to this tool
All updatesReleased 6 games: Sudoku, Reversi, Gomoku, Concentration, 15 Puzzle and 100-square math drills
Other free tools
All 183 free tools- Countdown to a DateEnter an event and a date to see the days, hours, minutes and seconds left, then share it by URL.
- Pixel Art MakerDraw pixel art on a 16×16 to 64×64 grid and save it as a transparent PNG or a 32×32 favicon.
- Omikuji: Today’s FortuneShake the box to draw an omikuji, a Japanese fortune slip, with tips for work and the web.
- Typing Speed TestType English or Japanese sentences and see your WPM, accuracy and a rank from S to D.
- Reaction Time TestClick, tap or press Space the moment the screen turns green and see your reaction time in milliseconds.
- Click Speed Test (CPS)Count how many times you can click, tap or press Space in 5, 10 or 30 seconds.
- Memory TestRemember a growing number or which squares lit up on a grid, and keep your best record.
- How Many Days Old Am I?See how many days and seconds you have been alive, your next birthday and milestones like 10,000 days.