Crates.io | bkgm |
lib.rs | bkgm |
version | 0.3.1 |
source | src |
created_at | 2023-09-19 13:32:51.309116 |
updated_at | 2024-02-08 22:43:53.552635 |
description | A Rust Backgammon library |
homepage | |
repository | https://github.com/bungogood/bkgm |
max_upload_size | |
id | 976896 |
size | 85,156 |
Bkgm is a versatile Rust crate designed to facilitate Backgammon-related operations, such as move generation, position parsing, conversion between standards, and the implementation of the perfect hash for bearoff and hypergammon databases. It supports both traditional Backgammon and 3-checker Hypergammon and provides the foundation for building Backgammon engines or APIs.
Here's a visual representation of the starting position in Backgammon:
Position ID: 4HPwATDgc/ABMA
┌13─14─15─16─17─18─┬───┬19─20─21─22─23─24─┬───┐
│ X O │ │ O X │ │
│ X O │ │ O X │ │
│ X O │ │ O │ │
│ X │ │ O │ │
│ X │ │ O │ │
│ │BAR│ │OFF│
│ O │ │ X │ │
│ O │ │ X │ │
│ O X │ │ X │ │
│ O X │ │ X O │ │
│ O X │ │ X O │ │
└12─11─10──9──8──7─┴───┴─6──5──4──3──2──1─┴───┘