예제 #1
0
 /// <summary>
 /// Start or prepare engine or book.
 /// </summary>
 public void TryStart()
 {
     if (player.IsComputer())
     {
         if ((book != null) && (!isBookFail))
         {
             if (!isBookStarted)
             {
                 SendMessageToBook(CHistory.GetPosition());
                 SendMessageToBook("go");
                 isBookStarted = true;
             }
         }
         else if (engine != null)
         {
             if (!isPrepareStarted)
             {
                 EngPrepare();
             }
             else if (isPrepareFinished && !isEngRunning)
             {
                 EngMakeMove();
             }
         }
     }
 }
예제 #2
0
 void XbGo()
 {
     if (player.modeValue.mode == "Standard")
     {
         CGamer gc = CGamerList.This.GamerCur();
         CGamer gs = CGamerList.This.GamerSec();
         SendMessageToEngine($"time {gc.GetIntTime() / 10}");
         SendMessageToEngine($"otim {gs.GetIntTime() / 10}");
     }
     SendMessageToEngine(CHistory.LastUmo());
 }
예제 #3
0
 void UciGo()
 {
     SendMessageToEngine(CHistory.GetPosition());
     if (player.modeValue.mode == "Standard")
     {
         CGamer gw = CGamerList.This.GamerWhite();
         CGamer gb = CGamerList.This.GamerBlack();
         SendMessageToEngine($"go wtime {gw.GetIntTime()} btime {gb.GetIntTime()} winc 0 binc 0");
     }
     else
     {
         SendMessageToEngine($"go {player.modeValue.GetUci()} {player.modeValue.GetUciValue()}");
     }
     TimerStart();
 }