fixed parseMove | bench 4118297

This commit is contained in:
rektdie committed 2025-03-12 21:46:24 +01:00
1 parent 73ce2aef55
commit 41fed91fc2
3 files changed
+21 -1

No files matched your search

+9 -1
View File
@@ -34,6 +34,9 @@ void ParsePosition(Board &board, std::string_view command) {
board.MakeMove(parseMove(board, move));
}
}
GenerateMoves(board, board.sideToMove);
GenAttackMaps(board);
}
static int ReadParam(std::string param, std::string &command) {
@@ -102,7 +105,7 @@ void UCILoop(Board &board) {
// parse UCI "position" command
if (input.find("position") != std::string::npos) {
ParsePosition(board, input.c_str());
ParsePosition(board, input);
continue;
}
@@ -159,5 +162,10 @@ void UCILoop(Board &board) {
board.PrintBoard();
continue;
}
if (input.find("listmoves") != std::string::npos) {
board.ListMoves();
continue;
}
}
}