StrategyAdvanced

How to Beat the Gomoku Computer on Hard

Practical tips for beating a Gomoku AI: tempo, quiet moves, double threats and avoiding the traps computers set.

Gomoku.now Editorial TeamPublished Updated 5 min readEditorial policy
Neon circuit-pattern face looking over a glowing Gomoku board
Illustrative cover artwork. The example positions appear in the article below.

Key takeaway

Play Black, build quiet shapes before you attack, and aim for a four-three: the computer can block the four but not the three that follows.

In this article
  1. Play Black first
  2. Build quietly before attacking
  3. Aim for the four-three
  4. Don't panic when it attacks
  5. Use the hint and undo
  6. How the Gomoku.now computer thinks
  7. Beating Easy
  8. Beating Medium
  9. Beating Hard
  10. A sample winning plan against Hard
  11. Use hints and undo to learn
  12. Playing as White against Hard
  13. Recognizing the computer's attack early
  14. Mistakes that lose to every level
  15. A practice routine that works
  16. When to move to real opponents
  17. Track your progress

Computer opponents never forget to block a four. To beat one, you need to create situations where blocking is not enough.

Play Black first

Black moves first and has a real advantage. Learn to win as Black before taking White against the Hard level.

Build quietly before attacking

Computers react strongly to visible threats. Place stones that support two or three future lines without making a threat yet. When you finally attack, you will have more options than the computer can cover.

Aim for the four-three

A four-three makes a four and an open three in one move. The computer must block the four, and then the three becomes an open four. This is the most reliable way to win.

Don't panic when it attacks

Answer every four immediately and every open three as soon as you can. Look for blocks that also extend your own lines.

Use the hint and undo

Offline games let you undo moves and ask for a hint. Use them to study a position, then try again without help.

How the Gomoku.now computer thinks

Every level always completes its own five and always blocks your immediate five. Easy then plays fairly loose moves. Medium scores every empty point by the lines it builds and blocks. Hard does the same scoring but also checks your best reply before choosing. Knowing this tells you where each level is weak.

Beating Easy

Simply build one open three in the center. Easy often misses it, and the open four that follows wins. Use these games to get fast at seeing lines, not to learn deep tactics.

Beating Medium

Medium blocks single threats well but struggles with threats it cannot see yet. Build a cluster of four or five stones close together, such as an L-shape around h8, h9 and i8, before making any three. Then one move can create two threes at once, and Medium can block only one.

Beating Hard

  • Play Black. The first-move advantage is real, and Hard is much tougher as Black.
  • Use fours as tempo moves to place your stones where you need them.
  • Prepare a hidden second line: stones that are only a two now but become a three after your next forcing move.
  • Do not rush. Hard punishes a lone attack that runs out of threats.
  • A sample winning plan against Hard

    Open at h8. Build a diagonal pair and a horizontal pair that share a stone. When Hard blocks one, extend the other into a broken three that also lines up with a third direction. Make a four to force a block, and use that tempo to play the point where your two threes cross. That is a four-three, and it wins.

    A four-three wins

    Step 1 of 4

    Black has three on row 8, blocked at g8, and three on column j: j8, j9, j10.

    Columns a to o run left to right. Rows 1 to 15 run bottom to top. h8 is the center.

    Use hints and undo to learn

    After a loss, undo back to the move where the computer's attack began and ask for a hint. Compare it with what you played. Repeating this for a few games teaches you the critical points much faster than playing new games blindly.

    Playing as White against Hard

    Winning as White is the real test. The computer as Black starts with the initiative, so your first goal is survival. Place your first stone diagonally next to the center and keep every new stone touching the action. Block each open three as soon as it appears, and choose the blocking point that is closer to your own stones. Avoid making early fours: they give the computer a free blocking stone that often strengthens its position.

    Once the board has around twenty stones, look for a moment when the computer has no open threes. That is your window. Build quietly with twos that point in different directions, then convert them into threats all at once. The computer is strongest when the position is sharp and weakest when you build slowly and safely.

    Recognizing the computer's attack early

  • Two diagonal pairs that share a stone: a four-three may be two moves away.
  • A broken three with a gap in the middle: it is just as dangerous as a solid three.
  • Stones forming an L or a small triangle: these can turn into two threats with one move.
  • When you see one of these shapes, play the point that touches the most of the computer's lines, even if it does not block an immediate threat. Preventive defense is how strong players beat strong engines.

    Mistakes that lose to every level

  • Ignoring a four because you are excited about your own attack.
  • Blocking the wrong end of an open three, leaving a three that can still grow.
  • Building far away from the center where your stones have no support.
  • Using all your forcing moves with no double threat at the end.
  • A practice routine that works

    Play three games against Medium as Black. Each time you win, switch to Hard for one game. Each time you lose, use undo and hints to find the move where things went wrong, then replay from that point. After a week of short sessions, most players notice they see threats much faster.

    When to move to real opponents

    Once you beat Hard a few times as Black, you are ready for ranked play. People make different mistakes from the computer: they miss threats, but they also set traps the computer would never try. Ranked matchmaking pairs you with players near your rating, so every game is a fair test.

    Track your progress

    Your saved games show how your results change over time. Every few days, count how many of your last ten games against each level you won. Most players see their Medium win rate climb first, then their Hard results as Black, and finally their Hard results as White. When your numbers stop improving, go back to the strategy guide and pick one idea to focus on, such as broken threes or preventive defense, for your next session. Small, focused goals beat long sessions of random games.

    Frequently asked questions

    Can you always beat the Hard computer?

    Not always, but playing Black and aiming for four-threes wins a large share of games.

    Does the computer cheat?

    No. It plays by the same freestyle rules and sees only the board.

    Which Gomoku.now AI level should I start with?

    Start with Easy for a few games, move to Medium once you win most games, and try Hard when you can make four-threes reliably.

    Does the AI cheat?

    No. It sees the same board as you and follows the same rules. It just checks every point quickly.

    Put it into practice

    Try these ideas against the computer or a friend.

    Editorial standards and sources

    Rules depend on the variant being played. Worked examples are study positions, and computer suggestions are not proofs of perfect play. Consult the linked rule sources when checking a disputed position.

    Topics

    StrategyGomoku

    Share this article

    Gomoku.now Editorial Team

    Read about the editorial byline, source selection and how to report a correction. Cover artwork is illustrative, not a record of the example position.

    All Gomoku articles