trictrac/store/python/test.py

11 lines
190 B
Python
Raw Normal View History

import store
# import trictrac
2025-02-08 13:28:42 +01:00
game = store.TricTrac()
2025-02-08 13:28:42 +01:00
print(game.get_state()) # "Initial state"
moves = game.get_available_moves()
print(moves) # [(0, 5), (3, 8)]
game.play_move(0, 5)