⚫ Gomoku

Master the ancient strategy of Five in a Row. Challenge our advanced AI or play against friends!

Welcome to Gomoku

The classic strategy game where you need to get five stones in a row to win. Challenge our advanced AI at different difficulty levels!

AI Difficulty

Your Color

Games Played
0
Wins
0
Win Rate
0%
Your Turn
AI Difficulty: Medium
AI is thinking...

Move History

No moves yet

How to Play Gomoku

Objective

Be the first to get five stones in a row horizontally, vertically, or diagonally

How to Play

Click on any empty intersection to place your stone. Take turns with your opponent

Strategy

Block your opponent's potential winning lines while building your own sequences

Winning

The first player to align five stones wins the game. No overlines allowed!

Learn from this Gomoku AI

Move from playing against the AI to learning the ideas behind it.

Explore the game AI lessons Β· Read the Gomoku AI build note Β· View the case study

πŸ†

Victory!

Congratulations! You won the game!

Moves Played 0
Game Duration 0:00

How to Play Gomoku

Game Objective

Gomoku, also known as "Five in a Row," is a strategy board game where the goal is to be the first player to get five of your stones in a row.

Basic Rules

  • Turn-based: Players alternate placing stones on the board
  • Winning condition: First to get 5 stones in a row wins
  • Directions: Horizontal, vertical, or diagonal lines count
  • No overlines: More than 5 in a row doesn't count as a win

Strategy Tips

  • Control the center: The center offers more winning opportunities
  • Block threats: Always block opponent's potential winning moves
  • Create multiple threats: Force your opponent to defend multiple lines
  • Think ahead: Plan several moves in advance

Game Rules

  • Standard Rules: Includes forbidden moves for black (double-three, double-four, overline)
  • Free-style Rules: No forbidden moves, more aggressive gameplay
  • Forbidden Moves: Marked with red ❌ symbols on the board
  • Rule Toggle: Use the "Standard/Free-style" button to switch modes

AI Difficulty Levels

  • Easy: Basic pattern recognition, good for beginners
  • Medium: Advanced tactics with moderate lookahead
  • Hard: Expert-level AI with deep strategic analysis

Background Themes

  • Gradient: Modern gradient background for clean gameplay
  • Traditional: Classical ink painting style with ancient masters
  • Modern: Contemporary gaming theme with vibrant colors
  • Toggle: Click the "Background" button to cycle through themes

Play Gomoku Unblocked Online

This page is for players searching for gomoku unblocked, five in a row online, or a Gomoku game that plays against a real AI. The game runs entirely in the browser as plain HTML5 with no downloads, plugins, or sign-ups, so it works on school, office, and Chromebook networks that block installers.

What sets this version apart is the opponent: instead of a scripted bot, it uses a Monte Carlo Tree Search (MCTS) engine β€” the same family of algorithms behind modern board-game AI β€” running in a Web Worker so the interface never freezes while the AI thinks. Four difficulty levels scale from a casual practice partner to a professional-strength opponent, and the standard forbidden-move rules (double-three, double-four, and overline for Black) are fully implemented for players who want tournament-accurate Gomoku.

Gomoku Strategy Basics

Gomoku Unblocked FAQ

Is this Gomoku game unblocked at school?

Yes. It is a pure HTML5 browser game with no downloads or plugins, so it runs anywhere regular websites load, including most school and workplace networks.

Can I play Gomoku against the computer?

Yes. The built-in MCTS AI offers four difficulty levels, from beginner-friendly to professional strength. You can also pass the device to a friend for local two-player games.

What are forbidden moves in Gomoku?

In standard Renju-style rules, the first player (Black) may not make a double-three, double-four, or a line of six or more (overline). These rules balance Black's first-move advantage and are fully supported here β€” you can toggle them on or off before a match.

Is Gomoku the same as five in a row?

Yes. Gomoku, five in a row, and Gobang all refer to the same game: be the first to place five stones in an unbroken row horizontally, vertically, or diagonally on the board.

Is this game free?

Yes. Gomoku is completely free to play with no account, subscription, or in-app purchases.