Skip to content
Snippets Groups Projects
Commit a0f82c8e authored by pal's avatar pal
Browse files

Add 0 for to_location when a token is picked

parent 6980db49
No related branches found
No related tags found
No related merge requests found
...@@ -126,7 +126,7 @@ class BoardGame(): ...@@ -126,7 +126,7 @@ class BoardGame():
# if the location now is empty check where it was before # if the location now is empty check where it was before
token_id = previous_board.get(k) token_id = previous_board.get(k)
location = k location = k
picked_token = (str(token_id), str(location)) picked_token = (str(token_id), str(location), str(0))
return picked_token return picked_token
def detect_placed_token(self, picked_token, current_board): def detect_placed_token(self, picked_token, current_board):
...@@ -136,7 +136,7 @@ class BoardGame(): ...@@ -136,7 +136,7 @@ class BoardGame():
picked_token: the token the user has picked picked_token: the token the user has picked
current_board: the status of the board at time t 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 move_it_back = False
placed_token = () placed_token = ()
for key, val in current_board.items(): for key, val in current_board.items():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment