Regular Games -- an Automata-Based General Game Playing Language
Radosław Miernik, Marek Szykuła, Jakub Kowalski, Jakub Cieśluk, Łukasz Galas, Wojciech Pawlik
TL;DR
Regular Games (RG) introduces a General Game Playing framework featuring a minimal, automaton-based low-level language (RG) and higher-level HRG for game design; the core approach is to encode rules as a finite automaton and compile to a fast C++ forward model, with a broader ecosystem for optimization and tooling. Theoretical results show RG is universal for finite turn-based games with imperfect information and randomness, with EXPSPACE-complete decision problems and PSPACE-complete when type length is fixed. Empirically, RG-based descriptions outperform existing systems (RBG and Ludii) in forward-model efficiency, with substantial reductions in automaton size and translation times under 100 ms. The work also enables cross-language interoperability through translations from RBG and GDL to RG and provides an extensible platform for procedural content generation and new game formats.
Abstract
We propose a new General Game Playing (GGP) system called Regular Games (RG). The main goal of RG is to be both computationally efficient and convenient for game design. The system consists of several languages. The core component is a low-level language that defines the rules by a finite automaton. It is minimal with only a few mechanisms, which makes it easy for automatic processing (by agents, analysis, optimization, etc.). The language is universal for the class of all finite turn-based games with imperfect information. Higher-level languages are introduced for game design (by humans or Procedural Content Generation), which are eventually translated to a low-level language. RG generates faster forward models than the current state of the art, beating other GGP systems (Regular Boardgames, Ludii) in terms of efficiency. Additionally, RG's ecosystem includes an editor with LSP, automaton visualization, benchmarking tools, and a debugger of game description transformations.
