Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
 public void Init()
 {
     engine      = new MockUciEngine();
     ctrl        = new UciController();
     ctrl.Engine = engine;
 }
Esempio n. 4
0
 public void Init()
 {
     ctrl             = new UciController();
     ctrl.UciCallback = Callback;
     Commands         = new List <string>();
 }
Esempio n. 5
0
        static void Main(string[] args)
        {
            UciController controller = new UciController();

            controller.UciMainLoop();
        }
Esempio n. 6
0
 public void Init()
 {
     engine = new MockUciEngine();
     ctrl = new UciController();
     ctrl.Engine = engine;
 }