/// <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(); } } } }
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()); }
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(); }