[][src]Crate backgammon

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

Example

Start a new match with rules:

use backgammon::{Match,Rules};

let mut m = Match::new().
with_points(13).
with_jacoby();

Discussions and Support

Any support is very welcome. Please use the following matrix room to discuss topics around this crate: #backgammon:carlostrub.ch

Source Code Integrity

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

3626 000C 0372 A78C 5DD7 B096 34EF 3FF3 3C29 811A

You can verify the integrity of the code by running:

git log --show-signature

Modules

bg_game

Implements a Backgammon game

bg_match

Implements a Backgammon match

Structs

Game

Represents a Backgammon game

Match

Represents a Backgammon match

Traits

Rules

Implements the Backgammon rules