Refactor #26
No files matched your search
+2
-2
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
Reference in new issue
Block a user