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 (); } }
public TimeBasedCommander (IEngineInternals engine) : base(engine) { _thinkingTime = 20; }
internal UCICommander (IEngineInternals engine) { _engine = engine; }
public ResultBasedCommander (IEngineInternals engine) : base(engine) { _depth = 20; }