Skip to content

Commit

Permalink
adjust player classes
Browse files Browse the repository at this point in the history
  • Loading branch information
xXUnique31Xx committed Jul 1, 2024
1 parent e296ec8 commit dfd1297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions player.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def make_move(self, board):

class HumanPlayer(Player):

def __init__(self, color, view, game_manager):
def __init__(self, color, view):
super().__init__(color)
self.view = view
self.game_manager = game_manager
self.game_manager = view.game_manager

def make_move(self, start_pos, goal_pos, board, update=True):
"""Method to make a move."""
Expand All @@ -38,12 +38,12 @@ def make_move(self, start_pos, goal_pos, board, update=True):

class ComputerPlayer(Player):

def __init__(self, color, board, view, enemy, game_manager):
def __init__(self, color, board, view, enemy):
super().__init__(color)
self.is_currently_playing = False
self.game_ai = GameAI(board, view, color, enemy)
self.view = view
self.game_manager = game_manager
self.game_manager = view.game_manager

def make_move(self, board, update=True):
"""Method to make a move."""
Expand Down

0 comments on commit dfd1297

Please sign in to comment.