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(); } PieceSquareTablesData.BuildPieceSquareTables(); } else { _uciClient.SendError("badoption"); } }
public FenTests() { PieceSquareTablesData.BuildPieceSquareTables(); }
public StaticExchangeEvaluationTests() { StaticExchangeEvaluation.Init(); PieceSquareTablesData.BuildPieceSquareTables(); }
public SimplePerftTests() { MagicBitboards.InitWithInternalKeys(); PieceSquareTablesData.BuildPieceSquareTables(); }
public VerificationPerftTests() { MagicBitboards.InitWithInternalKeys(); PieceSquareTablesData.BuildPieceSquareTables(); }