GNU Backgammon

GNU Backgammon

open_source

GNU Backgammon (GNUbg) is a world-class open-source backgammon program using neural networks for play, analysis, rollouts, and research. Free for Windows, macOS, and Linux.

About

GNU Backgammon (GNUbg) is a powerful, free, and open-source backgammon application capable of playing and analyzing money games and tournament matches at a world-class level. Backed by deep neural network models, it rates over 2000 on FIBS (First Internet Backgammon Server), making it one of the strongest publicly available backgammon opponents. The software offers both a command-line interface (with GNU readline support) and a full graphical GTK+ interface featuring 2D and 3D board rendering. It supports tournament match cube handling, cubeful play, and automated rollouts with variance reduction for in-depth position analysis. GNUbg includes 1-sided and 2-sided bearoff databases for precise endgame evaluation, as well as automatic and manual game annotation tools. Players and researchers can export games and positions to numerous formats (PDF, HTML, PNG, LaTeX, SGF, and more) and import from popular backgammon software formats. Record keeping and statistics are supported natively and via external relational databases using Python. The software is extensible through Python scripting, enabling custom analysis pipelines and automation. It is available as a source build on any POSIX system, as binary packages in Linux distributions, in BSD and macOS ports repositories, and as a Windows installer. With support for 15 languages and an active mailing list, GNU Backgammon serves competitive players, researchers, and developers alike.

Key Features

  • Neural Network Engine: Powered by cubeless money game neural networks, GNUbg evaluates positions at over 2000 FIBS rating, rivaling top human and commercial programs.
  • Graphical & CLI Interfaces: Offers both a full-featured GTK+ GUI with 2D/3D board rendering and a command-line interface for scripted or terminal-based workflows.
  • Deep Game Analysis & Rollouts: Supports automated position rollouts with lookahead and variance reduction, plus automatic and manual annotation of games and matches.
  • Multi-Format Import & Export: Import matches from BGRoom, GammonEmpire, Jellyfish, Snowie, and more; export to PDF, HTML, PNG, LaTeX, SGF, and other formats.
  • Python Scripting & Extensibility: Fully scriptable via Python on supported platforms, enabling custom analysis pipelines, database integration, and automation.

Use Cases

  • Practicing backgammon against a world-class AI opponent to improve competitive play.
  • Analyzing recorded games or matches to identify errors and study cube decisions.
  • Performing automated rollouts on specific positions to determine the statistically best move.
  • Researchers and developers using the neural network engine as a benchmark or integration point for AI game-playing studies.
  • Exporting games and match analyses to PDF, HTML, or LaTeX for coaching materials or competitive records.

Pros

  • Completely Free & Open Source: Released under the GNU GPL, GNUbg is free to use, modify, and distribute, with source code available for full transparency and community contribution.
  • World-Class Strength: Rates above 2000 on FIBS, providing one of the strongest freely available backgammon opponents and analysis engines in the world.
  • Cross-Platform Availability: Runs natively on Linux, macOS, Windows, and BSD systems, with easy installation via package managers or a Windows installer.
  • Comprehensive Analysis Tools: Offers rollouts, error analysis, match statistics, and commentary, making it invaluable for serious players looking to improve.

Cons

  • Dated User Interface: The GTK+ graphical interface feels dated compared to modern commercial backgammon apps, and setup can require technical knowledge on some platforms.
  • Incomplete Documentation: The official manual is still being completed and may not reflect the current version, making onboarding harder for new users.
  • No Web or Mobile Version: GNUbg is a desktop-only application with no web interface, iOS, or Android support, limiting accessibility for casual users.

Frequently Asked Questions

Is GNU Backgammon free to use?

Yes, GNU Backgammon is completely free and open-source software released under the GNU General Public License. It can be freely downloaded, used, and modified.

How strong is GNU Backgammon compared to human players?

GNU Backgammon rates over 2000 on FIBS (First Internet Backgammon Server), placing it at a world-class level that surpasses most human players and competes with top commercial programs.

What platforms does GNU Backgammon support?

GNUbg is available on Linux (as binary packages), macOS (via ports), Windows (installer), and any POSIX-compatible system that can build from source.

Can GNU Backgammon analyze my games?

Yes, GNUbg can automatically annotate games and matches, perform rollouts on positions, calculate error rates, and export analysis to formats like PDF, HTML, and SGF.

Does GNU Backgammon support Python scripting?

Yes, on platforms that support Python, GNUbg is fully extensible via Python scripting, enabling custom workflows, database integrations, and automated analysis pipelines.

Reviews

No reviews yet. Be the first to review this tool.

Alternatives

See all