AlphaGOmoku

A project exploring the synergy between Reinforcement Learning and AI-assisted development.

View on GitHub

AlphaGOmoku Menu AlphaGOmoku Gameplay

The Idea

AlphaGOmoku is a self-playing agent for Gomoku, directly inspired by the AlphaGo/AlphaZero architecture. The primary goal was to implement a rigorous reinforcement learning pipeline while leveraging modern AI coding assistants to handle the implementation overhead.

By using the Gemini CLI and other assistants to manage the frontend, UI, and boilerplate code, I was able to maintain a laser focus on the core RL logic: the Monte Carlo Tree Search (MCTS) integration and the neural network training dynamics.

Reinforcement Learning & Training

The agent learns entirely through self-play, starting from zero knowledge of the game beyond the rules.

The Architecture

Training Dynamics

The training loop follows the AlphaZero paradigm:

  1. Self-Play: The agent plays games against itself to generate experience.
  2. Buffer: States, MCTS search probabilities, and winners are stored.
  3. Optimization: The network is optimized to predict both the MCTS search results and the final game outcome simultaneously.

Developed with AI Assistants

This project served as a benchmark for AI-assisted research. The division of labor was clear:

This workflow demonstrates how researchers can now prototype complex, end-to-end systems by focusing on high-level algorithmic design while delegating the implementation details to specialized LLMs.