Gomoku (five-in-a-row) Game

Gomoku (also known as 5-in-a-row) is a simple two-player strategy game, traditionally played on a Go board. Players take turns to place their counters on the grid.

The winner is the first player to join exactly five of their counters in row, horizontally, vertically, or diagonally. This version allows you play an AI opponent, with starting player assigned randomly.

The following rules are applied to mitigate Black's first-turn advantage:
- Black moves first, and must play the centre square.
- White moves next and can play any sqaure.
- Black moves next but may not play within the central 5x5 area of the board.
- The game continues with players taking turns to play any remaining vacant position, until one player has exactly five counters in a row.

Note: The AI is not an expert player. The purpose of the app was mainly to try out web development using the Dart programming language.

Back to top