trictrac/store/python/test.py

10 lines
178 B
Python
Raw Normal View History

2025-02-08 13:28:42 +01:00
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)