FIVE IN A ROW

Play Gomoku (Five in a Row) Online

Free five in a row against AI, no sign-up or download

Play Gomoku against the computer for free in your browser, without an account or download. Choose a side, move order, and one of six AI levels. Freestyle rules apply: five or more connected stones horizontally, vertically, or diagonally win, with no forbidden moves. Play in a phone or desktop browser, with no download or installation. Tap an empty intersection on the board to place a stone.

Play Gomoku Against AI
Gomoku board and pieces illustration
Board
15 × 15
AI difficulty levels
6

AI matches need no account and offer six difficulty levels. Some matches require a connection; if the service is unavailable, backup AI may play at reduced difficulty.

Six AI levels

From relaxed practice to demanding tactics

Choose your side

Play Black or White, first or second

Instant play

Start immediately without an account

How to start Gomoku

Choose a difficulty, stone color, and move order. Black normally opens; if you select White and play second, the AI places the first stone.

Place one stone on an empty intersection each turn. The first player to connect five horizontally, vertically, or diagonally wins.

  • The board has 15×15 intersections.
  • This version uses freestyle rules without forbidden moves.
  • A full board without five in a row is a draw.

A practical threat order

First check whether you can make five, then whether an opposing four must be blocked. Without a forcing move, favor intersections that create threats in more than one direction.

AI difficulty

AI matches offer six difficulty levels and need no account. Backup AI keeps the match going if the service is unavailable; difficulty may be reduced.

Open fours and one-ended threats

Four consecutive stones with an empty intersection at both ends form an open four. Blocking one end leaves the other winning point available. An opponent’s stone or the board edge can close one end.

For example, empty–Black–Black–Black–Black–empty has two winning points; White–Black–Black–Black–Black–empty has only the right-hand one. Check vertical and diagonal lines as well.

Freestyle rules and your first exercise

This game uses freestyle Gomoku, without Black-only double-three, double-four, or overline restrictions. Rules from a Renju competition do not automatically apply here.

Start at Novice. Before placing a stone, find every immediate winning point for both sides. Make your own five if possible; otherwise block an opponent’s single winning point before building a new attack.

Practice Gomoku threats · Freestyle rules and your first exercise →

Two players

Find an opponent and start playing when matched.

Invite a friend on another device.

Enter the code your friend shared.

Two players →

FAQ

Frequently asked questions

How large is the board?

The current board has 15×15 intersections.

Are there forbidden moves for Black?

No. This version uses freestyle Gomoku without 3-3, 4-4, or overline restrictions. Both sides have equal winning conditions: the first to connect five stones wins.

Does an overline (6+ stones) count as a win?

Under freestyle Gomoku rules, connecting five or more consecutive stones in a line counts as a valid winning line.

Can I play White or move second?

Yes. Side and move order are separate settings.

Do I need an account?

AI matches need no account.

How do I start and play on a phone?

Play in a phone or desktop browser, with no download or installation. Tap an empty intersection on the board to place a stone.

Ready to make the first move?

Play Gomoku Against AI