Exemple #1
0
        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);
        }
Exemple #2
0
        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");
            }
        }
Exemple #3
0
 public FenTests()
 {
     PieceSquareTablesData.BuildPieceSquareTables();
 }
Exemple #4
0
 public StaticExchangeEvaluationTests()
 {
     StaticExchangeEvaluation.Init();
     PieceSquareTablesData.BuildPieceSquareTables();
 }
Exemple #5
0
 public SimplePerftTests()
 {
     MagicBitboards.InitWithInternalKeys();
     PieceSquareTablesData.BuildPieceSquareTables();
 }
Exemple #6
0
 public VerificationPerftTests()
 {
     MagicBitboards.InitWithInternalKeys();
     PieceSquareTablesData.BuildPieceSquareTables();
 }