HannahMoku

Play Gomoku Against The Computer

A free gomoku AI that runs right in your browser. Pick Easy, Medium or Hard and play five in a row on any phone, tablet or computer, with no download and no sign up.

A finished gomoku game against the computer on a phone, with the key moment explained

Choose Your Level

Easy

For learning the rules or playing with kids. It always takes a five when it sees one, but it often misses your threats and makes real mistakes.

Play Easy

Medium

Never misses a five and always blocks a five you are about to make. It attacks with fours and threes and looks two moves ahead.

Play Medium

Hard

Searches for forced wins with chains of fours, sets up four-threes and checks whether your threats lead anywhere before it answers. Beat it and you can beat most people online.

Play Hard

Learn From Every Loss

Losing to a computer is only useful if you know why. When the computer beats you, HannahMoku finds the key moment, the move where the game turned, and explains it in one line, such as an open three you needed to block. Press Show Me to jump to that position and try a better move.

How To Beat The Gomoku Computer

Beating Easy

Build a simple open three and watch whether it blocks. Easy often lets an open three become an open four. Once you win a few games, move up to Medium.

Beating Medium

Medium blocks every four and most threes, so one threat at a time will not work. You need a four-three: one move that makes a four and an open three together. Build compact shapes near the center where your stones support each other in several directions, then look for that double threat. Our gomoku patterns guide shows the shapes to look for.

Beating Hard

Hard sees chains of fours several moves deep, so it punishes loose shapes and late blocks. Play first as Black, block every open three early, and do not make a four unless you know where the block lands. Your best chance is a slow build of threats it cannot answer all at once. Train the calculation with our gomoku puzzles, which are built from exactly these chains of fours.

Computer Or Real Players?

The computer is the best way to practice: it is always ready, it never gets tired and you can undo. When you want a real game, press Quick Match to play someone new online, or create a room and send a link to a friend. Sign in with Google to get a rating and climb the gomoku leaderboard.

Questions

Is The Gomoku Computer Free?

Yes. Every level is free, with no download, no account and no ads in the game.

Can The Computer Go First?

Yes. Choose to play White in Game Setup and the computer opens as Black. Going first is an advantage in gomoku, so this is a good way to make Easy or Medium harder.

Does The Computer Cheat?

No. It plays by the same rules you do and sees only the board. Hard is stronger because it searches deeper, not because it gets extra moves or time.

Does It Work On My Phone?

Yes. It runs in the browser on iPhone, Android, tablets and computers. On a phone you tap once to preview a stone and again to place it.

Can I Undo A Move?

Yes. Undo takes back your last move and the computer reply, so you can try a different idea. When you lose, the result card also shows the key moment and lets you replay it.

Which Rules Does The Computer Play?

Classic gomoku on a 15 x 15 board by default. You can also change the board size, turn off Longer Lines Count for exactly five, or add captures or gravity, and the computer adapts.