TL;DR
WallZero applies the AlphaZero reinforcement learning framework to master WallGo, a highly complex territory-enclosure board game popularized by the Netflix series The Devil’s Plan. By incorporating tailored feature designs—specifically tracking player "reachability"—WallZero achieves superhuman performance, decisively defeating professional Go players. Beyond its playing strength, the AI provides a systematic analysis of game fairness and uncovers advanced strategic concepts like implicit passing and mobility sacrifice.
What Problem Does This Paper Address?
WallGo is a recently introduced strategic board game played on a small $7 \times 7$ grid. Despite the compact board size, players must both move stones and construct walls on every single turn, leading to an immense game-tree complexity of approximately $10^{87}$.
Because the game is so new, it remains largely underexplored from an AI perspective, and existing online bots play at a relatively low level. This paper addresses two primary questions: Can an AI achieve superhuman mastery in a game with such intricate, dual-action mechanics? And can we use that AI to systematically analyze the game's fairness, optimal openings, and core strategic principles?
Methods
The authors developed WallZero, an agent based on the AlphaZero framework implemented via the MiniZero simulation architecture. To adapt AlphaZero to WallGo's unique mechanics, the authors introduced two critical domain-specific designs:
- Unified Action Space: WallGo consists of a setup phase (placing stones) and a play phase (moving stones and placing walls). The authors unified these into a single action vector space of 2,597 possible actions, using action masking to filter out illegal moves depending on the current state.
- Tailored Feature Representation: Instead of just feeding the raw board state into the neural network, the authors designed a 49-plane input tensor. This included a Base (B) configuration of stones and walls, Territory (T) ownership tracking, a 4-step History (H), and a novel Reachability (R) feature that maps out the union of all positions a player can reach within one turn.
The final model utilized a 10-block residual network trained via self-play Monte Carlo Tree Search (MCTS).
Datasets
As a pure reinforcement learning model, WallZero did not rely on any pre-existing human game datasets. Instead, it generated its own data entirely through self-play.
For evaluation, the authors generated a dataset of 5,000 self-play games to analyze opening balances. They also conducted a round-robin tournament (1,000 games per pair) to evaluate different feature configurations, and set up an evaluation benchmark consisting of 8 formal matches against two Taiwanese professional Go players (a 3-dan and a 9-dan).
Key Insights and Ideas
- Mobility Trumps Territory (The Power of Reachability): Incorporating the "Reachability" feature into the neural network's input planes yielded the most massive jump in playing strength. Explicitly teaching the AI to see where it could move allowed it to evaluate long-term spatial control far better than just looking at static walls and stones.
- Netflix Got the Balance Right: In WallGo's "Empty Mode" (starting with an empty board), the first player enjoys a distinct advantage, winning 55.95% of games. However, the "4-stone mode" opening configuration pre-designed for The Devil's Plan drops the first-player win rate to a highly balanced 51.35%. The AI confirms that the show's symmetrical opening successfully neutralizes first-player advantage.
- The "Implicit Passing" Strategy: WallGo rules mandate that a player must move a stone and build a wall every turn, which often restricts their own space in the endgame. WallZero independently discovered an advanced "passing" technique: it will intentionally sacrifice a single point of its own territory to build a benign wall, effectively passing the turn order back to the opponent to force them into making a self-destructive move.
Key Results
- Superhuman Performance: WallZero won all 8 formal matches against the professional Go players. On average, the AI secured 1.98× more territory per game than its human opponents, peaking at a 3.08× territory ratio against the 9-dan professional.
- Ablation Success: The inclusion of Territory, Reachability, and History features drastically altered performance. In round-robin tournaments, the full WallZero model achieved an average win rate of over 82% against its baseline counterpart (WallZero-B) which only looked at the raw board state.
Limitations and Future Work
While WallZero demonstrates clear mastery, the study notes a few limitations:
- Two-Player Limit: The current architecture is optimized strictly for the two-player variant of WallGo, even though the game can support up to four players. Adapting the agent for multiplayer settings would require implementing multiplayer MCTS variants.
- Board Size Generalization: The model was trained and tested exclusively on the standard $7 \times 7$ board. The authors suggest exploring how well the architecture generalizes to $6 \times 6$ or $8 \times 8$ variations to analyze scaling complexities.
- Human Sample Size: The human evaluation pool was limited to two professional players; testing against a broader demographic of players could yield further insights into human vs. AI strategic divergence.
Summary updated