2023-08-18 18:41:58 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
from .board import Board
|
|
|
|
|
|
|
|
|
|
|
|
def main() -> None:
|
|
|
|
board = Board.default_puzzle
|
2023-08-18 22:35:10 +00:00
|
|
|
print(board)
|
2023-08-18 22:57:46 +00:00
|
|
|
print(board.solution_class, board.binary_repr)
|
2023-08-18 22:35:10 +00:00
|
|
|
|
2023-08-18 22:57:46 +00:00
|
|
|
for btn in (2, 4, 5, 7): # 2 is not a regular button, but alas
|
|
|
|
print(f"clicking button {btn} ...")
|
|
|
|
board.click(btn)
|
|
|
|
print(board)
|
|
|
|
print(board.solution_class, board.binary_repr)
|
2023-08-18 18:41:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|