protected void init(int playerNum, int stepSize, int searchDepth, WorldHeuristic heuristic, FillerActionDeterminationFunction fillerActionFunction, NewPathIndexFunction pathIndexFunction) { this.playerNum = playerNum; StepSize = stepSize; SearchDepth = searchDepth; Heuristic = heuristic; FillerActionFunction = fillerActionFunction; PathIndexFunction = pathIndexFunction; emptyList = new List <WorldAction>(); }
// Constructor public DiscreteAdversarialSearch(int playerNum, WorldHeuristic heuristic, FillerActionDeterminationFunction fillerActionFunction, NewPathIndexFunction pathIndexFunction, int stepSize = 4, int searchDepth = 4) { init(playerNum, stepSize, searchDepth, heuristic, fillerActionFunction, pathIndexFunction); }