gnubg
11 September 2026
gnubg is a native Python extension module that wraps the GNU Backgammon engine, so you can call the same position-analysis and cube-decision routines that power the GNU Backgammon GUI from any Python 3.8–3.13 script. It’s currently in alpha — expect the API to keep changing while we work towards a stable release.
- Position classification, board and position-ID conversions.
- Monte-Carlo rollouts and equity lookups.
- Works across Python 3.8 through 3.13.
Install it with pip:
pip install gnubg

