Gomoku - Free Online | FunToolX
Use Gomoku online for free, no download required. FunToolX offers hundreds of fun online tools.
About this tool
Gomoku is a free online game. Classic five-in-a-row with AI opponent. Play instantly — no install, no waiting. It runs entirely in your browser — no download or sign-up needed.
On the 15×15 chessboard, black and white sides take turns to place the pieces at the intersection. The party who first connects five pieces of the same color in the horizontal, vertical or diagonal directions wins. If the chessboard is full and there are five games, it is a draw.
There is a certain advantage in taking the lead, so there are usually forbidding rules in official competitions that restrict the black side. The AI mode uses minimax search and Alpha-Beta pruning, and evaluates the chess types on the board (Live 4, Chong 4, Live 3, etc.) to select the optimal landing point.
Chess type recognition is the core algorithm: scan four directions around each empty space and calculate the value of that position to both parties. AI will choose points that have both offensive and defensive capabilities-both allowing it to connect and blocking the opponent's threat. The page uses Canvas to draw chessboards and chess pieces.
In the online game of gobang, two people take turns to place the pieces. The party that connects five pieces in any direction, vertical, horizontal, and diagonal wins first. It supports dual-person and AI matchups.