From 3e5ed1ad8528806f7407d66a0cc6f30aa9a75433 Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 10 Mar 2025 06:34:33 +0100 Subject: [PATCH] forgot value in setoption --- source/uci.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/uci.cpp b/source/uci.cpp index a8cc690..fc264d5 100644 --- a/source/uci.cpp +++ b/source/uci.cpp @@ -158,14 +158,14 @@ void ParseGo(Board &board, std::string &command) { static void SetOption(std::string &command) { if (command.find("Hash") != std::string::npos) { - hashSize = (ReadParam("Hash", command) * 1000000) / sizeof(TTEntry); + hashSize = (ReadParam("value", command) * 1000000) / sizeof(TTEntry); TTable.resize(hashSize); } } static void PrintEngineInfo() { std::cout << "id name Eleanor\n"; - std::cout << "id name rektdie\n"; + std::cout << "id author rektdie\n"; std::cout << "option name Hash type spin default 5 min 1 max 256\n"; std::cout << "option name Threads type spin default 1 min 1 max 1\n"; std::cout << "uciok\n";