doc gnubg
This commit is contained in:
parent
25a5470a12
commit
c9e7cef443
|
|
@ -48,3 +48,4 @@ Non dénuée d'avantages :
|
|||
Backgammon notation : https://nymann.dev/2023/05/16/Introducing-the-Backgammon-Position-Notation-BPN-A-Standard-for-Representing-Game-State/
|
||||
|
||||
GnuBg : https://www.gnu.org/software/gnubg/manual/html_node/A-technical-description-of-the-Position-ID.html
|
||||
- implémentation rust https://github.com/bungogood/bkgm/blob/main/src/position.rs
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ impl Board {
|
|||
Board::default()
|
||||
}
|
||||
|
||||
// maybe todo : operate on bits (cf. https://github.com/bungogood/bkgm/blob/a2fb3f395243bcb0bc9f146df73413f73f5ea1e0/src/position.rs#L217)
|
||||
pub fn to_gnupg_pos_id(&self) -> String {
|
||||
// Pieces placement -> 77bits (24 + 23 + 30 max)
|
||||
// inspired by https://www.gnu.org/software/gnubg/manual/html_node/A-technical-description-of-the-Position-ID.html
|
||||
|
|
|
|||
Loading…
Reference in a new issue