(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

        first = self.win_score  # essence of SSS algorithm

        def next(lowerbound, upperbound, best_value):
            return best_value

        self.alpha = mtd(game, first, next, self.depth, scoring, self.tt)

        return game.ai_move
def __call__ ( self , game ) : scoring = ( self . scoring if self . scoring else ( lambda g : g . scoring ( ) ) ) # horrible hack first = self . win_score # essence of SSS algorithm def next ( lowerbound , upperbound , best_value ) : return best_value self . alpha = mtd ( game , first , next , self . depth , scoring , self . tt ) return game . ai_move