Ejemplo n.º 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();
             }
         }
     }
 }
Ejemplo n.º 2
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();
 }