From 1181e96ab382e6373c457a5efb73e436758fe7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Fri, 18 Aug 2023 22:57:46 +0000 Subject: [PATCH] main output --- pigeon_magnet_solver/main.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pigeon_magnet_solver/main.py b/pigeon_magnet_solver/main.py index 3f8982e..c5ac5a0 100755 --- a/pigeon_magnet_solver/main.py +++ b/pigeon_magnet_solver/main.py @@ -6,18 +6,13 @@ from .board import Board def main() -> None: board = Board.default_puzzle print(board) - print() + print(board.solution_class, board.binary_repr) - board.click(2) # not a button! - print(board) - print() - - board.click(4) - print(board) - print() - - board.click(5) - print(board) + 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__":