hoshi

Play Gomoku

Five in a row wins.

Play now

Gomoku against the computer

Ten bots, from a beginner who forgets to block to one that hardly ever makes a mistake. Each has its own style, and all of them are marked as bots.

Ten bots in three groups

Hoshi has ten Gomoku bots, from level 1 to level 10. They fall into three groups: beginner (Mochi, Hana, Kame), intermediate (Nezu, Kitsu, Kuma, Taka) and strong (Sora, Ryu, Tora). The table shows how each of them plays.

BotLevelStyle
Mochi1Just learned the rules. Often forgets to block.
Hana2Loves to attack and often forgets to defend.
Kame3Slow and careful. Blocks what it sees, rarely attacks.
Nezu4Careful: blocks first, attacks later.
Kitsu5Thinks a few moves ahead and sets small traps.
Kuma6Pushes hard with fours and looks for short forced wins.
Taka7Sharp eyes. Never misses a win with fours.
Sora8Calm and patient. Sees forced wins with threes.
Ryu9Reads long attacks with threes and fours. Rarely slips.
Tora10Reads deepest of all and hardly makes a mistake.

Which level should I choose?

Start lower than you think. A win against a weak bot teaches you more than a string of quick losses against a strong one.

  • New to Gomoku: Mochi. It knows the rules but often forgets to block, so your first fives come quickly.
  • You know the rules: Hana and Kame. Hana attacks and neglects defence, Kame blocks what it sees and rarely attacks. Between them they show you both sides of the game.
  • You win regularly: Nezu to Taka. From here the bots set small traps and look for forced wins with fours.
  • You read threats well: Sora, Ryu and Tora. They see forced wins with threes and play long attacks.

The bot ladder

The bot ladder turns the ten bots into a path. You beat them one after another, level by level, and always know who to play next. It is a good way to measure your progress without the pressure of a rating.

Choose the rule

Before each game against a bot you choose the rule: “5 or more” or “Exactly 5”. Start with “5 or more”, where any line of five or longer wins. Try “Exactly 5” once you feel at home, because a line of six no longer helps you and you have to aim more precisely.

Learn from every game

After the game, Hoshi analyses it in your browser and shows the decisive mistakes: the moment you missed a block, or a win you did not see. Look at the better move on the board and you will spot the same pattern next time. The bots also calculate on your own device, not on a server.

Practise what you learn

The bots are good partners for trying out new ideas. After a lesson on fours, play a few games against Kitsu or Kuma and look for chances to use them. Kuma pushes hard with fours itself, so it also shows you how to defend against them.

How to beat the first bots

The beginner bots lose to two simple habits. First, block every open three before it becomes an open four. Blocking it at one end is enough to turn it into a closed three, which you can deal with later.

Second, look for a double threat. A four-three is a single stone that makes a four and an open three at the same time. Your opponent has to block the four, and then the three becomes an open four that cannot be stopped.

  • Play near the centre, where your lines have room in all directions.
  • Check every new stone of your opponent in all four directions before you answer.
  • Do not waste moves on a closed three. It threatens little and gives your opponent time.
White has blocked the three g8–i8 in time on f8 (ringed); now Black can only turn it into a closed four.
Black to play: h8 (gold dot) makes the four h5–h8, blocked below by White on h4, and the open three f8–h8 at the same time – a four-three.

Frequently asked questions

Is the computer too strong for beginners?

No. Mochi often forgets to block and is made for your first games. Only the strong group, Sora, Ryu and Tora, is a serious challenge.

Which bot is the strongest?

Tora, at level 10. It reads deepest of all the bots and hardly makes a mistake, so beating it is a real achievement.

Which bot should I start with?

Mochi, if you are new to Gomoku. If you already know the rules, try Hana or Kame, and move up one level whenever you win comfortably.

Do I need an account?

No. You can play every bot straight away. An account is optional and useful for rated games against people or for playing on several devices.

Where does the computer calculate?

In your browser, on your own device. Nothing has to be installed.

Can I play the bots on my phone?

Yes. The bots run in the browser on phone and computer alike, with the same levels and rules.