Gomoku: play five in a row online free
Gomoku is the classic five in a row strategy game, also called Gobang. Place black and white stones on a wooden 15 by 15 board and be the first to line up five. Play the computer on four levels, try the daily challenge, play a friend on the same screen, or play online against a friend or a random player. With threat warnings, a zoomed touch preview, hints, undo, ranks, 18 badges and leaderboards. Free in any browser on a computer, tablet or phone.
How to play Gomoku
- Choose Easy, Medium, Hard or Expert to play the computer, take on the daily challenge, play a friend on the same screen, or tap Play with a friend to play online.
- Tap or click an empty crossing to place a stone. Black moves first, then the players take turns.
- Get five of your stones in an unbroken line, across, up and down, or diagonally, before your opponent does.
- Block your opponent's open threes and fours; red rings show where they would win next.
- If the whole board fills up with no five in a row, the game is a draw.
Mouse: click a crossing; a see-through stone shows where it will go. Touch: put your finger on the board and a magnifier shows the crossing under it; lift, then tap the glowing stone again to place it. Keyboard: the arrow keys move the cursor and Enter or Space places a stone. U takes back a move, H shows a hint and N opens the new game menu.
Gomoku rules
| Rule | How it works here |
|---|---|
| ⚫ Setup | The board has 15 by 15 lines and starts empty. Stones go on the crossings. Black moves first. |
| 👆 Moving | On your turn you place one stone of your colour on any empty crossing. Stones never move and are never captured. |
| 5️⃣ Winning | The first player with five stones in an unbroken line, across, up and down, or diagonally, wins. Freestyle: six or more in a row also wins. |
| 🤝 Draws | If all 225 crossings are filled and nobody has five in a row, the game is a draw. |
| 🚫 No restrictions | There are no forbidden moves for Black (unlike Renju), and no swap opening. |
Gomoku shapes you need to know
| Shape | What it is | What to do |
|---|---|---|
| 🟢 Open two | Two in a row with space on both sides | A good start for your own attack |
| 🟠 Open three | Three in a row, both ends free | Block one end at once, or it becomes an open four |
| 🔴 Four | Four in a row with one free end (also with a gap, like X X _ X X) | Must be blocked right now: it wins next move |
| 🔓 Open four | Four in a row, both ends free | Cannot be stopped: the player who makes it wins |
| 🍴 Double threat | One stone that makes a four and an open three (or two of them) at once | The opponent can only block one, so this wins |
With Threat warnings switched on (Settings), a red ring marks every crossing where your opponent would make five, and a dashed orange ring marks where they would make an open four, so beginners learn the shapes while they play.
Computer levels
| Level | Plays like | Good for |
|---|---|---|
| 🌱 Easy | Builds its own lines and often forgets to defend | Learning the rules and your first wins |
| 🎋 Medium | Plays good shapes and always blocks a four | Casual players who want a real game |
| 🔥 Hard | Looks several moves ahead and finds forced wins made of fours | Experienced players |
| 🐉 Expert | Searches deeper and checks every move against your attacks | A proper challenge |
The computer thinks in the background, so the board keeps moving while it plans. You can play as Black (you move first) or White (the computer starts), take back moves with Undo and ask for a Hint whenever it is your turn.
Play Gomoku online with a friend
Online Gomoku is five in a row against a real person. Both browsers check every stone with the same rules, and the moves travel directly between the two players (peer to peer), so it is fast and needs no account.
Prefer to watch first? The 45-second online play demo on the home page shows every step.
Start a game with a friend
- Tap the pink Play with a friend button (or choose Play online in the menu), type your name and choose Invite a friend.
- Send the 5-character code or the invite link with Share, Copy link or Copy code, and keep the window open.
- Your friend opens Gomoku, taps Play with a friend, then Join a friend, types the code and presses Join. The link does this for them.
- The game starts by itself. The colours are drawn at random and Black moves first.
No friend at hand?
Tap Random player to be paired with the next person looking for a game, or pick one of the open games in the list.
During the game
Tap the 😊 button to send a quick reaction, and keep an eye on the turn chip: it glows when it is your move, and the browser tab says so when you are in another tab. While an online game is on, the pink button hides and an exit icon appears in the top bar: tap it once and it turns red, tap again to leave (your opponent wins). At the end, press Rematch; the colours swap so both players get to start.
Tips for beating a person at Gomoku
- Never ignore an open three. Block it at the end that also helps your own stones.
- Attack with fours. A four must be answered, so a chain of fours lets you place stones where you want them.
- Build where your stones cross. Two lines that meet on one empty crossing are the start of a double threat.
- Black has the edge. The first player has an advantage, which is why the colours swap in a rematch.
Game modes, ranks and leaderboards
Play the computer against Easy, Medium, Hard or Expert, with your own record for each level. The Daily challenge gives everyone the same opening each day, played as Black against the Hard computer. Two players, one screen lets two people take turns on the same device, and Play online connects you with a friend or a random player. Choose the level, colour and players in Settings (the cog), then press New game (the circular arrow).
Every finished game earns XP, and your first win of the day adds a bonus. XP raises your rank through ten steps from Pebble to Legend. Wins against the computer can go on the leaderboard, with This month and All time panels: 300 points, plus 10 for every stone fewer than 40 you needed, plus a level bonus (Easy 0, Medium 100, Hard 250, Expert 450, Daily 250). You only pick a nickname and can delete your scores at any time. Online, two-player games, draws and losses are not ranked.
Badges
There are 18 badges: for beating each level, winning streaks, quick wins, open fours, double threats, blocking, diagonal wins, the daily challenge, two-player and online games, your rank and the number of games played. Open the medal button in the game to see your progress.
| Badge | How to earn it |
|---|---|
| 🏅 First Five | Win a game against the computer. |
| 🌱 Sprout | Beat the computer on Easy. |
| 🎋 Bamboo Mind | Beat the computer on Medium. |
| 🔥 Fire Line | Beat the computer on Hard. |
| 🐉 Dragon Slayer | Beat the computer on Expert. |
| 🏆 Hard Fighter | Win 5 games on Hard or Expert. |
| 🎯 Hat-trick | Win 3 games in a row against the computer. |
| ⚡ On Fire | Win 7 games in a row against the computer. |
| ⏱️ Lightning Five | Win with 9 or fewer of your stones on the board. |
| 🔓 Open Four | Make an open four: four in a row with both ends free. |
| 🍴 Fork Master | Make a double threat (four-three, four-four or three-three) 5 times. |
| 🛡️ Great Wall | Block your opponent's four 15 times. |
| ↗️ Diagonal Dash | Win with a diagonal line. |
| ☀️ Daily Player | Finish a daily challenge. |
| 👥 Friendly Game | Finish a two-player game on one screen. |
| 🌐 Online Winner | Win an online game against a real person. |
| 🎓 Tactician | Reach the Tactician rank (1,700 XP). |
| 🎲 Regular | Play 25 games. |
Gomoku tips
- Start near the centre. Lines from the middle have room to grow in every direction.
- Look at your opponent's last stone first. Before every move, check whether it made a three or a four that you must block.
- Block open threes at once. Once a three becomes an open four, the game is over.
- Use fours to gain tempo. Your opponent must answer a four, which lets you add stones to another line for free.
- Aim for a four-three. A move that makes a four and an open three together cannot be stopped.
- Keep your stones connected. Stones that are close together and on several lines are worth more than a long, lonely line.
Frequently asked questions
Is Gomoku free?
Yes. Gomoku on Util.Ninja is completely free to play online, with no sign-up, no download and no in-app purchases. It runs in your browser on computers, tablets and phones, and your statistics, rank and badges are saved on your own device.
How do I play Gomoku?
Two players take turns placing one stone on an empty crossing of a 15 by 15 board. Black moves first. Stones never move and are never captured. The first player to get five stones in an unbroken line, across, up and down, or diagonally, wins. If the board fills up first, the game is a draw.
Is Gomoku the same as Five in a Row, Gobang or Renju?
Gomoku, Five in a Row and Gobang are names for the same game. This version uses freestyle rules: five or more stones in a row win, and there are no forbidden moves. Renju is a tournament variant with extra restrictions for Black, which are not used here.
What is an open three and an open four?
An open three is three stones in a row with both ends free. If you do not block one end, it becomes an open four: four in a row with both ends free, which can no longer be stopped, because your opponent can only block one end. Blocking open threes early is the most important defensive skill in Gomoku.
What are the four computer levels?
Easy is relaxed and often careless, so it is great for learning. Medium plays solid shapes and always blocks a four. Hard looks several moves ahead and finds forced wins with a chain of fours. Expert searches deeper still and checks every move against your forcing attacks. No level cheats: they all play by the same rules as you.
Can I play Gomoku online against another person?
Yes. Tap Play with a friend, choose Invite a friend and send the 5-character code or the link, or pick Random player or an open game for a quick match. The two browsers are connected directly (peer to peer), so every stone shows up on your opponent's board at once, and no account is needed. You can send quick reactions during the game and ask for a rematch at the end.
How do I leave an online Gomoku game?
Tap the exit icon in the top bar. The first tap turns it red, the second tap leaves the game and your opponent wins. You can also give up from the new game menu. If your opponent leaves, you win. On a very strict network a direct connection may not be possible; try another network or a mobile connection.
Who moves first in online Gomoku?
The colours are drawn at random when the connection is made and Black moves first. In a rematch the colours swap, so both players get to start.
What is the daily challenge?
Every day everybody gets the same opening, with two black and two white stones already on the board. You play Black against the Hard computer. Win to put your score on the daily leaderboard, and come back tomorrow for a new opening.
How do ranks and XP work?
Every finished game earns XP: a win against the computer earns more on higher levels and with fewer stones, and your first win of the day adds a bonus of 50 XP. XP raises your rank from Pebble through Novice, Apprentice, Stone Setter, Line Builder, Tactician, Strategist, Master and Grandmaster up to Legend.
Does Gomoku have a leaderboard?
Yes. Wins against the computer are ranked on a leaderboard for each level, with This month and All time panels, and the daily challenge has its own board. A win scores 300 points, plus 10 for every stone fewer than 40 you needed, plus a level bonus (Easy 0, Medium 100, Hard 250, Expert 450). You only choose a nickname, and you can delete your scores at any time.
Can I play on a phone?
Yes. Gomoku works on phones and tablets in portrait and landscape. When you touch the board a magnifier shows exactly which crossing is under your finger; lift your finger, then tap the stone again to place it, so you never place a stone by accident. You can turn the second tap off in Settings. On a computer use the mouse, or the arrow keys and Enter.
More free board games to play online: Four in a Row, Go, Reversi, Tic-Tac-Toe and Chess.