feat: python bindings

This commit is contained in:
Henri Bourcereau 2026-01-18 18:41:08 +01:00
parent 4920ab96f8
commit 012ccf8b42
12 changed files with 402 additions and 14 deletions

4
bot/python/test.py Normal file
View file

@ -0,0 +1,4 @@
import store
game = store.TricTrac()
print(game.get_state_dict())

View file

@ -15,7 +15,8 @@ pub const ACTION_SPACE_SIZE: usize = 514;
pub enum TrictracAction {
/// Lancer les dés
Roll,
/// Continuer après avoir gagné un trou
/// Faire un nouveau 'relevé' (repositionnement des dames à l'état de départ) après avoir gagné un trou,
/// au lieu de continuer dans la position courante
Go,
/// Effectuer un mouvement de pions
Move {