Skip to content

Commit

Permalink
add game_manager for ComputerPlayer in load_gamestate
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Friedl authored and Manuel Friedl committed Jul 2, 2024
1 parent e4c1f69 commit 6290dd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def load_gamestate(self):
self.board.currently_playing = GameSave['currently_playing']
self.board.show_symbols = GameSave['show_symbols']
self.load_game = True
self.player_black = ComputerPlayer('Black', self.board, self.view, 'White')
self.player_black = ComputerPlayer('Black', self.board, self.view, 'White', self)

if 'Ai' in GameSave:
self.ai = True
Expand Down
1 change: 1 addition & 0 deletions prog2-chess
Submodule prog2-chess added at 8eea92

0 comments on commit 6290dd3

Please sign in to comment.