diff --git a/unitary/examples/quantum_chinese_chess/move_test.py b/unitary/examples/quantum_chinese_chess/move_test.py index c86f13b8..4f1ef918 100644 --- a/unitary/examples/quantum_chinese_chess/move_test.py +++ b/unitary/examples/quantum_chinese_chess/move_test.py @@ -42,14 +42,19 @@ def global_names(): + pass + + +# global board +# board = Board.from_fen(_EMPTY_FEN) + + +def set_board(positions: List[str]): global board board = Board.from_fen(_EMPTY_FEN) for col in ascii_lowercase[:9]: for row in digits: globals()[f"{col}{row}"] = board.board[f"{col}{row}"] - - -def set_board(positions: List[str]): for position in positions: board.board[position].reset( Piece(position, SquareState.OCCUPIED, Type.ROOK, Color.RED)