Canvas is not supported.

Black moves first

Players take turns placing pieces on the intersections.

Gomoku AI Game

Five in a Row

Gomoku, also known as Five in a Row or Renju, is a classic black-and-white board game. Two sides place pieces on the intersections of the board, and the first side to connect five pieces in a line wins.

This HTML5 version lets you play against an AI opponent. The program evaluates the current board position and chooses moves that can attack, defend, and compete with the player.

It is a compact experiment in canvas game development, board-state evaluation, and browser-based interaction.