Refactor #26

Merged
rektdie merged 11 commits from refactor into main 2025-03-21 10:52:24 +01:00
2 changed files with 2 additions and 9 deletions
Showing only changes of commit 4719508080 - Show all commits

No files matched your search

+2 -2
View File
@@ -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);
-7
View File
@@ -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);