Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit 787260c

Browse files
Add files via upload
1 parent 1c4e982 commit 787260c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mayhem.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@ extern "C" {
3737

3838
namespace mayhem {
3939

40-
// Macros
40+
// Constants
4141

4242
const 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
4346
constexpr int MAX_MOVES = 256; // Max chess moves
4447
constexpr int MAX_SEARCH_DEPTH = 64; // Max search depth (Stack frame problems ...)
4548
constexpr 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
5558
constexpr int PERFT_DEPTH = 6; // Perft at depth 6
5659
constexpr int BENCH_DEPTH = 14; // Bench at depth 14
5760
constexpr int BENCH_SPEED = 10000; // Bench for 10s
58-
constexpr bool BOOK_BEST = false; // Nondeterministic opening play
5961
constexpr int WEEK = (7 * 24 * 60 * 60 * 1000); // ms
6062
constexpr int MAX_PIECES = (2 * (8 * 1 + 2 * 3 + 2 * 3 + 2 * 5 + 1 * 9 + 1 * 0)); // Max pieces on board (Kings always exist)
6163
constexpr int FRC_PENALTY = 100; // Penalty for bishop blocked on corner by own pawn
6264
constexpr int TEMPO_BONUS = 25; // Bonus for the side to move
6365
constexpr int BISHOP_PAIR_BONUS = 20; // Both colored bishops bonus
6466
constexpr int CHECKS_BONUS = 17; // Bonus for checks
67+
constexpr bool BOOK_BEST = false; // Nondeterministic opening play
6568
constexpr 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

Comments
 (0)