private static void Main() { AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; HashTableAllocator.Allocate(); MagicBitboards.InitWithInternalKeys(); StaticExchangeEvaluation.Init(); new InteractiveConsole().Run(); }
private static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; HashTableAllocator.Allocate(); MagicBitboards.InitWithInternalKeys(); StaticExchangeEvaluation.Init(); PieceSquareTablesData.BuildPieceSquareTables(); var silentMode = args.Contains("silent"); new InteractiveConsole().Run(silentMode); }
public void Run(params string[] parameters) { var key = parameters[1]; var value = parameters[3]; if (_optionExecutors.ContainsKey(key)) { _optionExecutors[key](value); // Value of material has changed, SEE table needs to be recalculated if (key.EndsWith("Value")) { StaticExchangeEvaluation.Init(); } } else { _uciClient.SendError("badoption"); } }
public StaticExchangeEvaluationTests() { StaticExchangeEvaluation.Init(); PieceSquareTablesData.BuildPieceSquareTables(); }
public StaticExchangeEvaluationTests() { StaticExchangeEvaluation.Init(); }