(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 DUAL algorithm
        next = (lambda lowerbound, upperbound, bestValue: bestValue + 1) 
        
        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 DUAL algorithm next = ( lambda lowerbound , upperbound , bestValue : bestValue + 1 ) self . alpha = mtd ( game , first , next , self . depth , scoring , self . tt ) return game . ai_move