19 lines
422 B
Python
Executable file
19 lines
422 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
from .board import Board
|
|
|
|
|
|
def main() -> None:
|
|
board = Board.default_puzzle
|
|
print(board)
|
|
print(board.solution_class, board.binary_repr)
|
|
|
|
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)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|