Example #1
0
 public void SendMessageToEngine(string msg)
 {
     if (enginePro.process != null)
     {
         Color col = isWhite ? Color.DimGray : Color.Black;
         FormLogEngines.AppendTimeText($"{player.name}", col);
         FormLogEngines.AppendText($" < {msg}\n", Color.Brown);
         enginePro.WriteLine(msg);
         curProcess = enginePro;
     }
 }
Example #2
0
 public void Init(bool white)
 {
     curProcess        = null;
     isWhite           = white;
     isBookStarted     = false;
     isBookFail        = false;
     isEngRunning      = false;
     isPrepareStarted  = false;
     isPrepareFinished = false;
     isPositionWb      = false;
     uciPhase          = 0;
     infMs             = 0;
     countMovesBook    = 0;
     countMovesEngine  = 0;
     countMoves        = 0;
     iScore            = 0;
     nodes             = 0;
     nps        = 0;
     npsSum     = 0;
     npsCount   = 0;
     timerStart = 0;
     timer.Reset();
     Clear();
 }