diff --git a/src/board_state/main.py b/src/board_state/main.py index 7b283c8f90c9fe0d4bade36bb014f87fc82e69a6..d645444ac7c3437eca376a1f763fd0381c6e8163 100755 --- a/src/board_state/main.py +++ b/src/board_state/main.py @@ -126,7 +126,7 @@ class BoardGame(): # if the location now is empty check where it was before token_id = previous_board.get(k) location = k - picked_token = (str(token_id), str(location)) + picked_token = (str(token_id), str(location), str(0)) return picked_token def detect_placed_token(self, picked_token, current_board): @@ -136,7 +136,7 @@ class BoardGame(): picked_token: the token the user has picked current_board: the status of the board at time t ''' - token_id, loc_from = picked_token + token_id, loc_from, _ = picked_token move_it_back = False placed_token = () for key, val in current_board.items():