carsten-wenderdel / wildbg

Backgammon engine based on neural networks
https://wildbg.shuttleapp.rs/swagger-ui/
Apache License 2.0
18 stars 5 forks source link

Implement gnubg position ids #5

Closed carsten-wenderdel closed 11 months ago

carsten-wenderdel commented 1 year ago

To store rollout data efficiently, it makes sense to use an established format like GnuBG position ids.

There are two subtasks, one for reading and one for writing. The signatures of the functions could look like this:

pub fn from_id(id: &str) -> Position {...}

and

pub fn to_id(&Position) -> String {...}

carsten-wenderdel commented 11 months ago

Solved with PR #11