Sketch of a game theory framework and API in Rust.
Currently supports:
- Game interface with history, obsevations, active player, strategies etc.
- Goofspiel implementation (with hidden opponent moves)
- Outer sampling MCCFR implementation (very fast, e.g. ~50k it/s in Goofspiel(5))
- Generic tree game (currently limited to copying an existing game)
This repo is currently very experimental. I started it as an exploration* of the right API for game theory framework in Rust to be subsequently reimplemented similarly in GameGym. It could be a base of a GT lib in Rust but currently there are no plans in this direction.
*) Have you also noticed that drafting APIs in a very strict language forces you to think through some decisions you would notice only much later in e.g. Python?