Beispiel #1
0
 public void GetMoveWithComplexity(PlayerColor player, int complexity, Action <Pos, TimeSpan> getMoveWithComplexitySuccess)
 {
     if (_error)
     {
         return;
     }
     _actions.Enqueue(() =>
     {
         var startTime = DateTime.Now;
         var pos       = _bot.GetMoveWithComplexity(player, complexity);
         if (getMoveWithComplexitySuccess != null)
         {
             getMoveWithComplexitySuccess(pos, DateTime.Now - startTime);
         }
     });
     ExecuteNext();
 }