Skip to content

Commit

Permalink
Update state.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zew15101 authored Dec 12, 2019
1 parent 64d65af commit 86f9825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion state.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def generate_moves(self, board, color):
#Is there a blank space where we need to jump, and is there an opponent's piece to jump over?
if (board[jump_to[0]][jump_to[1]] == ' ' and board[jump_to[0]][jump_to[1]-1] != ' '):
#Append move if possible
possible_moves.append(((row, col,) (jump_to[0], jump_to[1])))
possible_moves.append(((row, col), (jump_to[0], jump_to[1])))
#Update how far you'll jump next time (for multiple jumps)
curr_pos = jump_to
else:
Expand Down

0 comments on commit 86f9825

Please sign in to comment.