Introduction
The Digital Ludeme Project aims to model over 1,000 traditional strategy games from throughout human history. A major hurdle is that the rules for many ancient games are lost; researchers often only have archaeological fragments and unreliable reconstructions. To find the "true" rules, an AI is needed that can quickly learn to play thousands of rule variants to evaluate their "quality of play."
Standard General Game Playing (GGP) agents often lack domain-specific knowledge, and deep learning approaches like AlphaZero are computationally expensive and tied to specific board geometries. This paper addresses the need for lightweight, geometry-independent features that can bias AI decision-making across diverse games while remaining explainable to historians.
Methodology: Topology-Independent "Walks"
The authors introduce a system for defining Geometric Piece Features within the LUDII game engine. Instead of using fixed $(x, y)$ coordinates, patterns are defined as a sequence of steps and turns on the game board's underlying graph.
By treating a game board as a graph and moves as relative commands, strategies become portable. For example, a "knight move" can be described as a relative path (e.g., "two steps forward, one turn"). This allows the same strategic pattern to be mapped onto square grids, hexagonal grids, or even irregular tilings.
MCTS Biasing and Implementation
The system uses Monte Carlo Tree Search (MCTS) and employs these geometric features to "bias" playouts—giving the AI "hunches" about which moves are strategically sound based on recognized patterns. These are categorized as:
- Reactive Patterns: Triggered in response to the opponent's last move (e.g., blocking a bridge).
- Proactive Patterns: General strategic goals (e.g., forming a line of four) that apply anywhere on the board.
To maintain efficiency, features are matched against game states using a custom BitSet class called ChunkSet, allowing for high-speed bitwise parallel operations.
Key Insights and Results
By defining strategies through basic geometric relationships, the AI's logic can be translated back into plain English. Instead of an opaque weight in a neural network, the AI can explain its move as an attempt to "form a group of three," bridging the gap between machine learning and historical research.
As a work-in-progress, the paper focuses on the architectural framework. Key results include:
- Transferability: Successful demonstration of mapping patterns (like the knight move) from square grids to complex semi-regular tilings.
- Efficiency: The
ChunkSetimplementation allows testing hundreds of feature instances per move with minimal overhead.
Limitations and Future Work
While the framework is robust, automated "frequent pattern mining" for fine-tuning feature sets remains a challenge. Future work will involve large-scale evaluations to compare these lightweight features against deep-learning approaches and fully automating natural language explanations for learned concepts to assist historians.
Summary updated