small refactor in uci
This commit is contained in:
1 parent
0ffc2c77de
commit
4719508080
2 files changed
+2
-9
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);
|
||||
|
||||
Reference in new issue
Block a user