The Rust Backgammon library

4 releases (breaking)

0.4.0 Aug 4, 2021
0.3.0 Oct 15, 2020
0.2.0 May 2, 2020
0.1.0 Dec 3, 2017

#274 in Games


475 lines

Backgammon: The Oldest Board Game of the World

This crate provides a pure, canonical implementation of the game Backgammon. It allows to implement fast Backgammon games in various clients.

Supported Doubling Cube Rules

This library supports the following rules on the doubling cube:

  • Beaver
  • Raccoon
  • Murphy
  • Jacoby
  • Crawford
  • Holland


Start a new match with rules:

use backgammon::{Match,Rules};

let mut m = Match::new().

Discussions and Support

Any support is very welcome. Please use Bitbucket Issues to discuss features or ask for help.

Source Code Integrity

All commits are signed with the following GPG key (find the respective key for example in the FreeBSD keyring):

59A6 2B5D B2FE B9CA 2358 4FA1 1C7A 2F39 D966 052B

You can verify the integrity of the code by running:

git log --show-signature


~102K SLoC