public void Start() { QuitEvent = new ManualResetEvent(false); Running = true; Controller = new UciController(); Engine = new Engine(); Engine.UciGui = Controller; Engine.QuitCallback = Quit; Controller.UciCallback = Console.WriteLine; Controller.Engine = Engine; StartListening(); // wait until we receive instructions to quit QuitEvent.WaitOne(); }
public void Init() { engine = new MockUciEngine(); ctrl = new UciController(); ctrl.Engine = engine; }
public void Init() { ctrl = new UciController(); ctrl.UciCallback = Callback; Commands = new List <string>(); }
static void Main(string[] args) { UciController controller = new UciController(); controller.UciMainLoop(); }