(self, game)
return temp.ai_move
Returns the AI's best move given the current state of the game.
Returns the AI's best move given the current state of the game.
Returns the AI s best move given the current state of the game .
def __call__(self, game):
        """
        Returns the AI's best move given the current state of the game.
        """
        scoring = self.scoring if self.scoring else (lambda g: g.scoring())
        temp = game.copy()
        self.alpha = negamax_nr(
            temp, self.depth, scoring, -self.win_score, +self.win_score
        )
        return temp.ai_move
def __call__ ( self , game ) : scoring = self . scoring if self . scoring else ( lambda g : g . scoring ( ) ) temp = game . copy ( ) self . alpha = negamax_nr ( temp , self . depth , scoring , - self . win_score , + self . win_score ) return temp . ai_move