fixed parseMove | bench 4118297
This commit is contained in:
1 parent
73ce2aef55
commit
41fed91fc2
3 files changed
+21
-1
No files matched your search
+9
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user