Efficient Reasoning in Regular Boardgames

Jakub Kowalski, Radosław Miernik, Maksymilian Mika, Wojciech Pawlik, Jakub Sutowicz +2 more
6/15/2020
10 citations
cs.AI

Official code: marekesz/rbg (15 stars, C++, last commit 2025-11-11).

Abstract

We present the technical side of reasoning in Regular Boardgames (RBG) language -- a universal General Game Playing (GGP) formalism for the class of finite deterministic games with perfect information, encoding rules in the form of regular expressions. RBG serves as a research tool that aims to aid in the development of generalized algorithms for knowledge inference, analysis, generation, learning, and playing games.

Show full abstract

In all these tasks, both generality and efficiency are important. In the first part, this paper describes optimizations used by the RBG compiler. The impact of these optimizations ranges from 1.7 to even 33-fold efficiency improvement when measuring the number of possible game playouts per second. Then, we perform an in-depth efficiency comparison with three other modern GGP systems (GDL, Ludii, Ai Ai). We also include our own highly optimized game-specific reasoners to provide a point of reference of the maximum speed. Our experiments show that RBG is currently the fastest among the abstract general game playing languages, and its efficiency can be competitive to common interface-based systems that rely on handcrafted game-specific implementations. Finally, we discuss some issues and methodology of computing benchmarks like this.

View on arXivView PDF

Code Implementations(1)

marekesz/rbgOfficial100%

The official RBG release repository.

150C++, PythonNov 12, 20181 years agoNOASSERTION

Similar Papers

Cite this paper

@article{kowalski2020efficient,
  title  = {Efficient Reasoning in Regular Boardgames},
  author = {Jakub Kowalski and Radosław Miernik and Maksymilian Mika and Wojciech Pawlik and Jakub Sutowicz and Marek Szykuła and Andrzej Tkaczyk},
  year   = {2020},
  eprint = {2006.08295},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.08295}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.08295.svg)](https://codeofpaper.com/paper/2006.08295)

Discussion