(self, game)
return game.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())
        )  # horrible hack

        self.alpha = negamax(
            game,
            self.depth,
            self.depth,
            scoring,
            -self.win_score,
            +self.win_score,
            self.tt,
        )
        return game.ai_move
def __call__ ( self , game ) : scoring = ( self . scoring if self . scoring else ( lambda g : g . scoring ( ) ) ) # horrible hack self . alpha = negamax ( game , self . depth , self . depth , scoring , - self . win_score , + self . win_score , self . tt , ) return game . ai_move