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

gnubg

Python bindings that bring the GNU Backgammon engine to Python 3, with position analysis and cube-decision routines built in. Currently in alpha.

Recent Posts

Catch up on the latest Stones & Dice news and updates.

Get game updates by email

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.