Gomoku (Omok)

Be the first to line up five stones of your color across, down or diagonally. Play the computer at three levels, or take turns with a friend on one device. There is an optional Black double-three ban and unlimited undo, and the stone sounds are recordings of real Go stones.

Updated How it works

Gomoku (Omok) · How do you want to play?

Be the first to line up five stones of your color in a row: across, down or diagonally. Black moves first. White wins with five or more in a row, but Black must make exactly five, so six or more does not count for Black. If the board fills up, it is a draw.

Who do you want to play?

Looks one move ahead

Your color

You play Black and move first

Black double-three (3-3) ban

Black cannot play a point that makes two open threes at once (marked with a small ×). The computer follows the ban too.

Games today
0
Wins vs computer (Easy · Medium · Hard)
0 · 0 · 0

Stone sounds: Freesound billhails2 · Hongsungbock (CC0)

How to use

  1. On the first screen, choose your opponent (two players on one device, or the computer at Easy, Medium or Hard), your color (First, Second or Random) and whether the Black double-three ban is on, then tap Start. Your last choices are remembered on this device and shown again next time.
  2. Black moves first. When the points are big enough (a tablet or a computer screen), tap a point and the stone is placed right away.
  3. On a phone, where the points are less than 28 px apart, a stone is placed with two taps. The first tap shows a see-through stone as a preview. Tap the same point again, or tap “Place stone here”, to place it. Tap a different point and the preview moves there. This keeps a slip of the finger from putting a stone in the wrong place.
  4. Against the computer, “The computer is thinking” is shown while it plays. It takes at most 1 second per move at Easy and Medium and at most 3 seconds at Hard.
  5. When someone wins, a red line is drawn through the five stones and the result appears. “Play again” starts a new game with the same settings.
  6. The buttons above the board turn sound on and off, take back a move (Undo), and go back to the first screen (Quit). Undo has no limit. Against the computer it takes back your move and the computer’s reply as a pair, and with two players it takes back one move at a time.

With a keyboard, use the arrow keys to move between points and Enter or Space to select. Points are named with a letter from A to O across and a number from 1 to 15 from the bottom up, so the center point is H8. A screen reader announces each move in one line, like “Black H8”, and the stone played last has a small dot on it.

Rules: how to win and the levels

SettingDetails
Board15 x 15 (225 points), Black moves first
Black winsExactly five in a row across, down or diagonally (six or more is not a win)
White winsFive or more in a row, including six or more
Banned moveOnly Black’s double-three (3-3). On by default and can be turned off. Banned points show a small x and the computer follows the ban too
DrawThe board is full and nobody has a winning line
Computer EasyPlays close to the stones and only looks for a move that wins or loses right away (within 1 second per move)
Computer MediumCompares the shape score of every point, one move ahead (within 1 second per move)
Computer HardLooks first at fours and open threes and reads several moves deep (within 3 seconds per move)
UndoNo limit. One pair of moves against the computer, one move with two players
  • A double-three is a point where Black, with one stone, makes two or more open threes at once. A move that makes exactly five and wins on the spot is not banned.
  • An open three is three stones in a row with both ends empty, so that one more stone would make an open four that cannot be stopped. The computer looks first at points that make or block this shape.
  • The stone sounds are not synthesized. They are recordings of real Go stones being placed on a board. Sound is off at first and starts after you have tapped the page once. The volume and pitch change a little with every stone.

Example: the Black double-three ban and the two-tap placement

  1. Choose “Computer: Easy”, “First (Black)” and the double-three ban “On”, then tap Start.
  2. On a phone, tap the center of the board to see a see-through stone, then tap the same point again to place a Black stone. The computer answers with a White stone next to it.
  3. When a Black move would make two open threes at once, that point shows a small x. Tapping it shows “That point is a banned double-three for Black” and no stone is placed, so pick another point.
  4. Connect exactly five Black stones in a row and a red line is drawn and “You win!” appears. If the computer connects five first, “The computer wins” appears.

Edge cases: saving, overlines and small screens

  • A game in progress is saved on this device automatically. If you close the page and open it again, you continue the game. Tapping Quit, or finishing the game, deletes the saved game. Nothing is sent to a server.
  • What stays on this device is the game in progress, the number of games you finished today, your wins at each computer level, your last settings and whether sound is on. None of it is sent to a server, and it disappears if you clear the site data.
  • Sound is off at first. Tap the sound button to turn it on. The sound file is only downloaded after you turn it on, and a device on silent will not play it even when the button is on.
  • If Black connects six or more, it is not a win. The game goes on, while White wins with six or more.
  • If your device is set to reduce motion, stones no longer settle onto the board with a small movement and simply appear.
  • If the board fills up with no winning line, the game ends in a draw and you can tap Play again to start a new one.

Frequently asked questions

Which rules does it use?

Black moves first on a 15 x 15 board, and whoever first connects stones of their color across, down or diagonally wins. Black needs exactly five and White needs five or more. Because moving first is an advantage, only Black’s double-three is banned, and you can turn that off in the settings.

How strong is the computer?

Easy can be beaten by someone playing for the first time. Hard reads fours and open threes and blocks them, so it is not easy to beat. Easy and Medium think for at most 1 second per move, and Hard for at most 3 seconds.

Are my games sent to a server?

No. The game in progress, today’s game count, wins at each level, your last settings and the sound setting are saved only on this device (in your browser) and never go to a server. There is no login.

What does the site count in its visit statistics?

Only the game name and the opponent (computer Easy, Medium, Hard, or two players) when a game starts, when it ends and when you tap Play again. It does not send where you played, who won or how long the game took.

What do the sounds come from?

They are recordings of real Go stones being placed on a board. Each time, a recording different from the last one is picked and played a little differently. The recordings were published as CC0 (public domain) on Freesound by billhails2 and Hongsungbock.

How it works

The board is 15 by 15 points, 225 in all, and Black moves first. After each move the game counts how many stones of that color are connected through the new stone in each of the four directions (across, down and the two diagonals). White wins with five or more in a row, and Black wins only with exactly five. If Black makes six or more in a row, that line does not win and play goes on. Black may not play a point that makes two open threes at once (a double-three, or 3-3), and this ban can be switched off. Other bans such as 4-4 are not used. If all 225 points are filled with no winning line, the game is a draw. The computer opponent is calculated by this site's own code, no moves are sent to an outside service, and everything is calculated in your browser. Easy plays close to the stones and only looks for a move that wins or loses right away. Medium compares every point by the shape score one move ahead. Hard looks first at points that make a four or an open three and reads several moves deep. The tests for the rules are in this site's repository.

Last checked

Found a calculation mistake? Let us know.