コード例 #1
0
        public AdversarialAi(FindAllPossibleMoves MoveFinder, GetFitnessForState Evaluator, int depth, object[] EvalParams, Prioritizer queuePrioritizer, OnMoveReady callback)
        {
#if logging
            FullLog = new List <List <string> >(depth + 1);
            for (var ii = 0; ii < depth + 1; ++ii)
            {
                FullLog.Add(new List <string>());
            }
#endif
            moveFinder  = MoveFinder;
            eval        = Evaluator;
            maxDepth    = depth;
            mEvalParams = EvalParams;
            mCallback   = callback;
            mTerminate  = false;
            prioritize  = queuePrioritizer;
        }
コード例 #2
0
 public AdversarialAi(FindAllPossibleMoves MoveFinder, GetFitnessForState Evaluator, int depth, object[] EvalParams, Prioritizer queuePrioritizer)
     : this(MoveFinder, Evaluator, depth, EvalParams, queuePrioritizer, null)
 {
 }