Skip to content

Commit c6e7bd7

Browse files
committed
Update python_easy_chess_gui.py
Fix issue #38
1 parent 541f920 commit c6e7bd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_easy_chess_gui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262

6363
APP_NAME = 'Python Easy Chess GUI'
64-
APP_VERSION = 'v1.11'
64+
APP_VERSION = 'v1.12'
6565
BOX_TITLE = '{} {}'.format(APP_NAME, APP_VERSION)
6666

6767

@@ -2054,7 +2054,7 @@ def play_game(self, window, engine_id_name, board):
20542054

20552055
# Update board if e.p capture
20562056
elif board.is_en_passant(user_move):
2057-
self.update_ep(user_move, board.turn)
2057+
self.update_ep(window, user_move, board.turn)
20582058

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

22782278
# Update board if e.p capture
22792279
elif board.is_en_passant(best_move):
2280-
self.update_ep(best_move, board.turn)
2280+
self.update_ep(window, best_move, board.turn)
22812281

22822282
# Update board if move is a promotion
22832283
elif best_move.promotion is not None:

0 commit comments

Comments
 (0)