An Overview of the Ludii General Game System

Matthew Stephenson, Éric Piette, Dennis J. N. J. Soemers, Cameron Browne

Introduction

General Game Playing (GGP) research seeks to develop AI agents that can play any game they encounter, moving beyond the limitations of domain-specific masters like Deep Blue or AlphaGo. However, existing frameworks often face significant trade-offs between mathematical rigor and computational efficiency. Languages like the Game Description Language (GDL) are powerful but verbose and slow to interpret at runtime, which hinders the training of advanced AI agents.

Ludii addresses these challenges by introducing a modular, "ludeme"-based system. By mapping game descriptions directly to a Java class grammar, Ludii achieves significantly higher performance and better human readability than previous logic-based systems.

Methodology: The Class Grammar Approach

The fundamental innovation of Ludii is its Class Grammar. Unlike logic-based systems that require complex rule interpretation, Ludii automatically generates its description language from the class hierarchy of its underlying Java source code.

Games are constructed using ludemes—the "DNA" of games. These are conceptual units of information, such as board geometries, piece types, or specific victory conditions (e.g., "5-in-a-row"). Because the grammar maps 1:1 to Java code, game descriptions are instantiated directly into high-performance library code for compilation.

The game of Gomoku described in Ludii's concise, human-readable ludeme-based language.

The Digital Ludeme Project

Ludii serves as the primary platform for the Digital Ludeme Project, an ambitious effort to reconstruct and analyze over 1,000 historical strategy games. The system's flexibility allows it to handle diverse board geometries, stochastic elements (luck), and hidden information within a single unified framework. This generality makes it an ideal tool for phylogenetic analysis—tracing how games have evolved and spread across cultures over centuries. Researchers can easily "tweak" games, such as changing board sizes or rule sets, to observe how AI behavior adapts.

AI Integration and Explainable Visualization

Ludii comes equipped with standard AI agents, most notably Monte Carlo Tree Search (MCTS). A key feature of the system is its visualization suite, which provides immediate feedback on an agent's "thinking process."

Visualization of an AI agent's search process in Reversi, where icon size and color indicate exploration frequency and estimated move value.

As shown in the visualization tools, the system color-codes moves based on their estimated value and scales icons based on how often the AI explored them during its search. This "Explainable AI" approach helps researchers debug agent behavior and understand why specific moves are prioritized over others.

Conclusion

By prioritizing both computational efficiency and human-centric design, Ludii represents a significant step forward for General Game Playing. Its ability to represent complex games in a few lines of code—often small enough to fit in a QR code—lowers the barrier to entry for game researchers while providing the performance necessary for modern AI training and historical game reconstruction.

Summary updated

BibTeX
@inproceedings{stephenson2019overview,
  author = {Matthew Stephenson and Éric Piette and Dennis J. N. J. Soemers and Cameron Browne},
  title = {{An Overview of the Ludii General Game System}},
  booktitle = {CoG},
  year = {2019},
  doi = {10.1109/cig.2019.8847949},
}
Figure