示例#1
0
        /// <summary>
        /// Entry point.
        /// </summary>
        /// <param name="args">Program arguments.</param>
        public static void Main(string[] args)
        {
            var generator = new Generator();

            Console.WriteLine("Proxima b opening book generator");
            Console.WriteLine();

            PatternsContainer.Init();
            MagicContainer.Init();

            var openingBook = generator.GetOpeningBook("Book/input.book");

            SaveOpeningBook("Book/output.book", openingBook);
        }
示例#2
0
 /// <summary>
 /// Initializes chess engine (loads patterns, magic keys, sets converters, ...).
 /// Must be called first, otherwise chess engine will crash :(
 /// </summary>
 public static void Init()
 {
     PatternsContainer.Init();
     MagicContainer.Init();
     OpeningBookContainer.Init();
 }