init python lib generation with pyo3
This commit is contained in:
parent
59c80c66e4
commit
883d799edb
8 changed files with 201 additions and 6 deletions
9
store/python/test.py
Normal file
9
store/python/test.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue