@@ -37,9 +37,12 @@ extern "C" {
3737
3838namespace mayhem {
3939
40- // Macros
40+ // Constants
4141
4242const std::string VERSION = " Mayhem 8.7" ; // Version
43+ const std::string STARTPOS = " rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" ; // UCI startpos
44+ const std::string EVAL_FILE = " nn-cb80fb9393af.nnue" ; // Default NNUE evaluation file
45+ const std::string BOOK_FILE = " final-book.bin" ; // Default Polyglot book file
4346constexpr int MAX_MOVES = 256 ; // Max chess moves
4447constexpr int MAX_SEARCH_DEPTH = 64 ; // Max search depth (Stack frame problems ...)
4548constexpr int MAX_Q_SEARCH_DEPTH = 16 ; // Max Qsearch depth
@@ -55,17 +58,14 @@ constexpr int BOOK_MS = 100; // At least 100ms+ for the book l
5558constexpr int PERFT_DEPTH = 6 ; // Perft at depth 6
5659constexpr int BENCH_DEPTH = 14 ; // Bench at depth 14
5760constexpr int BENCH_SPEED = 10000 ; // Bench for 10s
58- constexpr bool BOOK_BEST = false ; // Nondeterministic opening play
5961constexpr int WEEK = (7 * 24 * 60 * 60 * 1000 ); // ms
6062constexpr int MAX_PIECES = (2 * (8 * 1 + 2 * 3 + 2 * 3 + 2 * 5 + 1 * 9 + 1 * 0 )); // Max pieces on board (Kings always exist)
6163constexpr int FRC_PENALTY = 100 ; // Penalty for bishop blocked on corner by own pawn
6264constexpr int TEMPO_BONUS = 25 ; // Bonus for the side to move
6365constexpr int BISHOP_PAIR_BONUS = 20 ; // Both colored bishops bonus
6466constexpr int CHECKS_BONUS = 17 ; // Bonus for checks
67+ constexpr bool BOOK_BEST = false ; // Nondeterministic opening play
6568constexpr std::uint64_t READ_CLOCK = 0x1FFULL ; // Read clock every 512 ticks (white / 2 x both)
66- const std::string STARTPOS = " rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" ; // UCI startpos
67- const std::string EVAL_FILE = " nn-cb80fb9393af.nnue" ; // Default NNUE evaluation file
68- const std::string BOOK_FILE = " final-book.bin" ; // Default Polyglot book file
6969
7070// Use NNUE evaluation (From make) ?
7171#ifdef MAYHEMNNUE
0 commit comments