From 47195080807a364fc62e44baabecf6a515298363 Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 20 Mar 2025 20:45:58 +0100 Subject: [PATCH] small refactor in uci --- source/uci.cpp | 4 ++-- source/uci.h | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/source/uci.cpp b/source/uci.cpp index e9a735c..723f139 100644 --- a/source/uci.cpp +++ b/source/uci.cpp @@ -12,7 +12,7 @@ #include "perft.h" #include "utils.h" -void ParsePosition(Board &board, std::string_view command) { +static void ParsePosition(Board &board, std::string_view command) { if (command.find("startpos") != std::string::npos) { board.SetByFen(StartingFen); } @@ -58,7 +58,7 @@ static int ReadParam(std::string param, std::string &command) { return 0; } -void ParseGo(Board &board, std::string &command) { +static void ParseGo(Board &board, std::string &command) { SearchParams params; params.wtime = ReadParam("wtime", command); diff --git a/source/uci.h b/source/uci.h index a565f06..11a231e 100644 --- a/source/uci.h +++ b/source/uci.h @@ -13,12 +13,5 @@ public: SearchParams(){} }; -// Initializes the position with given parameters -void ParsePosition(Board &board, std::string_view command); - -// Parse UCI "go" command -// GUI sends the engine this command if it should start searching for the best move -void ParseGo(Board &board, std::string &command); - // main UCI loop void UCILoop(Board &board);