Skip to content

Commit

Permalink
Update python_easy_chess_gui.py
Browse files Browse the repository at this point in the history
Fix issue #38
  • Loading branch information
fsmosca committed Apr 19, 2021
1 parent 541f920 commit c6e7bd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python_easy_chess_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@


APP_NAME = 'Python Easy Chess GUI'
APP_VERSION = 'v1.11'
APP_VERSION = 'v1.12'
BOX_TITLE = '{} {}'.format(APP_NAME, APP_VERSION)


Expand Down Expand Up @@ -2054,7 +2054,7 @@ def play_game(self, window, engine_id_name, board):

# Update board if e.p capture
elif board.is_en_passant(user_move):
self.update_ep(user_move, board.turn)
self.update_ep(window, user_move, board.turn)

# Empty the board from_square, applied to any types of move
self.psg_board[move_from[0]][move_from[1]] = BLANK
Expand Down Expand Up @@ -2277,7 +2277,7 @@ def play_game(self, window, engine_id_name, board):

# Update board if e.p capture
elif board.is_en_passant(best_move):
self.update_ep(best_move, board.turn)
self.update_ep(window, best_move, board.turn)

# Update board if move is a promotion
elif best_move.promotion is not None:
Expand Down

0 comments on commit c6e7bd7

Please sign in to comment.