Example #1
0
 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>();
 }
Example #2
0
 // Constructor
 public DiscreteAdversarialSearch(int playerNum, WorldHeuristic heuristic, FillerActionDeterminationFunction fillerActionFunction,
                                  NewPathIndexFunction pathIndexFunction, int stepSize = 4, int searchDepth = 4)
 {
     init(playerNum, stepSize, searchDepth, heuristic, fillerActionFunction, pathIndexFunction);
 }