예제 #1
0
		public static IUCICommander Create (UCIAnalysisType type, IEngineInternals engine)
		{
			switch (type) {

			case UCIAnalysisType.TimeBased:
				return new TimeBasedCommander (engine);

			case UCIAnalysisType.ResultBased:
				return new ResultBasedCommander (engine);

			default:
				throw new InvalidProgramException ();
			}
		}
예제 #2
0
		public TimeBasedCommander (IEngineInternals engine) : base(engine)
		{
			_thinkingTime = 20;
		}
예제 #3
0
		internal UCICommander (IEngineInternals engine)
		{
			_engine = engine;
		}
예제 #4
0
		public ResultBasedCommander (IEngineInternals engine) : base(engine)
		{
			_depth = 20;
		}