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