Beispiel #1
0
 public override void YourMove(Position P)
 {
     if (PreMoves.Any())
     {
         MakeMove(PreMoves.Pop());
     }
     //I don't care else
 }
Beispiel #2
0
        public override async void YourMove(Position P)
        {
            if (PreMoves.Any())
            {
                MakeMove(PreMoves.Pop());
            }
            else
            {
                int Move = -10;
                await Task.Run(() => Move = E.BestMove(P));

                MakeMove(Move);
            }
        }