FIVE IN A ROW. GAME ON.

Gomoku Game

Take turns placing stones on the board, think several moves ahead, and outmaneuver your opponent by connecting five in a row in this classic strategy game of foresight and precision.

About the Game

Gomoku, also known as Five in a Row, is a classic two-player strategy board game. Two players take turns placing black and white stones on the intersections of a grid. The first player to line up five stones in a row wins.

The game is easy to learn and hard to master. It has simple rules, but it rewards planning, pattern recognition, and careful defense. Gomoku is related to older Asian board games and is played around the world in casual and competitive settings.

This online version plays in your browser, with no download or installation. It has a wooden board and polished black and white stones. You can play against a computer opponent with six difficulty levels, or against a friend on the same device. Other features include timed games, tournaments, hints, move history, replay, and detailed statistics. The game works on desktop, tablet, and mobile, in both light and dark themes.

Objective

Be the first player to place five of your stones in an unbroken line. The line can run:

  • Horizontally
  • Vertically
  • Diagonally from upper left to lower right
  • Diagonally from upper right to lower left

If the board fills up before either player makes five in a row, the game is a draw.

How to Play

  1. Choose a mode. Select Player vs. Computer, Local 2-Player, or Practice from the New Game menu.
  2. Pick your settings. Choose a board size (9x9, 13x13, 15x15, 17x17, 19x19, or a custom size), a ruleset, and, if you play the computer, a difficulty level.
  3. Black moves first. Click or tap an empty intersection to place a stone. You can also use the arrow keys to move around the board and press Enter or Space to place a stone.
  4. Take turns. Players alternate, placing one stone per turn. Stones cannot be moved or removed once placed.
  5. Make five in a row. The first player to connect five stones wins. The winning line is highlighted on the board.
  6. Review or play again. After the game, you can review the moves step by step, start a rematch, or begin a new match.

Useful controls include Undo, Redo, Hint, Pause, Resign, Flip Board, Zoom, and Fullscreen. Keyboard shortcuts are also available: U for undo, R for restart, H for a hint, and plus and minus to zoom.

Rules

This game supports three rulesets. The main difference is what counts as a win.

Freestyle Gomoku

  • Five or more stones in a row wins.
  • Neither player has any restrictions.

Standard Gomoku

  • Exactly five stones in a row wins.
  • A line of six or more (an overline) does not count as a win for either player.

Renju

  • Black moves first, and Black is restricted to keep the game balanced.
  • Black may not make an overline (six or more in a row).
  • Black may not make a double-three (two open threes at once).
  • Black may not make a double-four (two fours at once).
  • If Black plays a forbidden move, White wins.
  • Black wins with exactly five in a row. White wins with five or more.
  • Forbidden points are marked with a red cross on the board.

Swap Opening Rule (optional) One player places the first three stones: Black, White, then Black. The other player then chooses which color to play. This makes the opening fairer, because the first player cannot simply choose the strongest start.

Other options

  • Board sizes: 9x9 for quick games and 19x19 for tournament-style play. 15x15 is the standard size.
  • Timed mode: Choose 1, 3, 5, 10, or 15 minutes per player, or a custom time, with an optional increment per move. A player who runs out of time loses.
  • Tournament mode: Play a best-of-3, best-of-5, or best-of-7 match, or play first to a number of wins you choose. Colors can switch between games.

Tips and Tricks

  • Start in the center. Central stones give you room to build lines in every direction.
  • Keep your stones connected. Scattered stones rarely become threats. Build stones that work together.
  • Learn the key patterns. An open three has three stones in a row with both ends open. If left alone, it becomes an open four, which cannot be stopped. A four with one open end forces your opponent to block immediately.
  • Block fours at once. If your opponent has four in a row with an open end, block it right away or you lose.
  • Respond to open threes quickly. Block them before they grow, ideally on the side that also helps your own position.
  • Create double threats. A move that makes two threats at once, such as a four and an open three, is very hard to defend. This is how most games are won.
  • Think defensively and offensively. Before each move, check your opponent's lines and then your own. The best moves often do both.
  • Control the tempo. Making forcing moves, like fours, keeps your opponent busy and lets you set up a winning combination.
  • As White, stay close to Black's first stone. Place your first stone touching it or diagonal to it.
  • Use Practice mode. It highlights winning moves and urgent threats and shows a position evaluation bar, without affecting your statistics.
  • Use the hint button. Hints highlight a strong move and explain why it is good, so you can learn patterns as you play.
  • Work up through the AI levels. Start with Beginner or Easy, then move up to Medium, Hard, Expert, and Unbeatable as you improve.
  • Review your games. Use the replay controls to step through finished games and find the moment the game turned.

Frequently Asked Questions

What is Gomoku?

Gomoku is a two-player strategy game where players take turns placing black and white stones on a grid. The first to make five in a row, horizontally, vertically, or diagonally, wins. It is also called Five in a Row.

Is Gomoku the same as Tic-Tac-Toe?

It is similar in idea, but much deeper. Gomoku is played on a much larger board and needs five in a row instead of three. It has far more strategy, including attacking threats and planning ahead.

Who goes first in Gomoku?

Black always moves first. If you choose White, the computer plays Black. You can also pick your color at random.

Can I play against a friend?

Yes. Choose Local 2-Player to take turns on the same device. Turn on pass-and-play to have the board rotate to face the player whose turn it is. Online matchmaking is not available.

How many difficulty levels does the computer have?

Six: Beginner, Easy, Medium, Hard, Expert, and Unbeatable. Unbeatable is the strongest computer opponent available here. It is very strong, but it is not guaranteed to be impossible to beat.

What is the difference between Freestyle, Standard, and Renju?

In Freestyle, five or more in a row wins. In Standard, only exactly five wins, and six or more does not count. Renju adds restrictions for Black (no overlines, double-threes, or double-fours) to balance the first-move advantage.

Why does Black have an advantage?

Moving first gives Black the initiative. Renju restrictions and the Swap opening rule exist to make games fairer.

What board size should I choose?

Use 15x15, the standard size, for a typical game. Choose 9x9 or 13x13 for quicker games and 17x17 or 19x19 for longer games. You can also set a custom size.

Can I undo a move?

Yes, unless you turn undo off in Settings. Against the computer, undo takes back your last move and the computer's reply. In Local 2-Player mode it takes back one move. Undo is not available after a game ends, but you can review the finished game.

Does the game have a timer?

Yes. Turn on timed mode and choose a time per player and an optional increment. If a player's clock runs out, that player loses. You can instead set the clock to warn you and keep playing.

Are hints available?

Yes. A hint highlights a recommended move and can explain why it is good. You can turn explanations off. The number of hints used is tracked for each game.

Does the game save my progress?

Yes. Unfinished games, statistics, match history, and your settings are saved in your browser, and you can choose Continue Game when you return. If your browser blocks storage, the game still works, but nothing is saved after you leave the page.

Does Practice mode affect my statistics?

No. Practice games are not counted. You also get extra help, such as highlighted winning moves and threats.

Does it work on phones and tablets?

Yes. The layout adapts to the screen, the touch targets are large, and the board stays square. You can also zoom in on large boards.

Is there a dark mode?

Yes. Use the sun and moon button in the upper-right corner. The wooden board keeps its look in both themes.

Can I change how the board looks?

Yes. Choose Classic wood, Light oak, Dark walnut, Bamboo, or Minimal modern, or pick a custom color. You can also adjust the grid, stone size, shadows, and highlights.

Is there sound?

Yes. Sound effects are subtle and can be turned off in one click. In Settings, you can switch each sound on or off separately and set the volume.