Class AlphaBetaWithTranspositionTablesPlayer


  • public class AlphaBetaWithTranspositionTablesPlayer
    extends AlphaBetaPlayer
    Player implementation that uses the AlphaBetaSearchTreeWithTranspositionTables
    • Method Detail

      • calculateTurn

        public Turn calculateTurn​(int gameId,
                                  Board board,
                                  int playerId,
                                  Turn enemyTurn,
                                  long maxTurnTime)
        Calculates the best possible turn in given time.
        Overrides:
        calculateTurn in class AlphaBetaPlayer
        Parameters:
        gameId - the running game
        board - the current board state
        playerId - the id (0 or 1) of the player who we play
        enemyTurn - what the enemy did in his last turn
        maxTurnTime - the time we have to find our turn
        Returns:
        turn to play