This repository was archived by the owner on Apr 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ namespace mayhem {
5656
5757// Macros
5858
59- #define VERSION " Mayhem 7.9 "
59+ #define VERSION " Mayhem 8.0 "
6060#define MAX_MOVES 256 // Max chess moves
6161#define MAX_DEPTH 64 // Max search depth (stack frame problems ...)
6262#define MAX_Q_DEPTH 16 // Max Qsearch depth
@@ -442,12 +442,12 @@ bool OnBoard(const int x, const int y) {
442442
443443// X-coord to char
444444char File2Char (const int f) {
445- return char ( ' a' + f) ;
445+ return ' a' + f;
446446}
447447
448448// Y-coord to char
449449char Rank2Char (const int r) {
450- return char ( ' 1' + r) ;
450+ return ' 1' + r;
451451}
452452
453453// Convert int coords to string
@@ -534,7 +534,7 @@ void SetBook(const std::string &book_file) { // book.bin
534534// NNUE lib
535535
536536void SetNNUE (const std::string &eval_file) { // nn.nnue
537- g_classical = !( g_nnue_exist = eval_file.length () <= 1 ? false : nnue::nnue_init (eval_file.c_str ())) ;
537+ g_nnue_exist = eval_file.length () <= 1 ? false : nnue::nnue_init (eval_file.c_str ()), g_classical = !g_nnue_exist ;
538538}
539539
540540// Hashtable
@@ -2253,7 +2253,8 @@ void UciGo() {
22532253}
22542254
22552255void UciUci () {
2256- std::cout << " id name " << VERSION << ' \n ' <<
2256+ std::cout <<
2257+ " id name " << VERSION << ' \n ' <<
22572258 " id author Toni Helminen\n " <<
22582259 " option name UCI_Chess960 type check default false\n " <<
22592260 " option name Level type spin default 100 min 0 max 100\n " <<
You can’t perform that action at this time.
0 commit comments