init python lib generation with pyo3

This commit is contained in:
Henri Bourcereau 2025-02-08 13:28:42 +01:00
parent 59c80c66e4
commit a3d284138d
7 changed files with 199 additions and 6 deletions

9
store/python/test.py Normal file
View file

@ -0,0 +1,9 @@
import trictrac
game = trictrac.TricTrac()
print(game.get_state()) # "Initial state"
moves = game.get_available_moves()
print(moves) # [(0, 5), (3, 8)]
game.play_move(0, 5)