public void TestEngineStartup() { var e = new UciEngineSettings { Command = @"C:\chess\arena_3.0\Engines\Rybka\Rybka v2.2n2.mp.w32.exe" }; e.LoadEngineData(); Assert.AreEqual("Rybka 2.2n2 mp 32-bit", e.EngineId); Assert.AreEqual("Vasik Rajlich", e.AuthorId); Assert.AreEqual(27, e.Options.Length); Assert.AreEqual("32", e.Options.Single(x => x.Name == "Hash").DefaultValue); }
public void TestMatchRunner1() { var config = new UciEngineSettings { Name = "Rybka", Command = @"C:\chess\arena_3.0\Engines\Rybka\Rybka v2.2n2.mp.w32.exe" }; var white = new UciEnginePlayer(config); var black = new UciEnginePlayer(config); var timeSettings = new TimeSettings { Name = "60 Sec Match", InitialTime = 60, TimeModeMachine = TimeMode.Blitz }; var runner = new MatchRunner(white, black, timeSettings); runner.LoadAndSetup(); }