fixed SEE test | bench 3036761

This commit is contained in:
rektdie committed 2025-05-31 01:50:53 +02:00
1 parent 71c3e64e3b
commit 9281f6f0f9
3 files changed
+8 -3

No files matched your search

+7
View File
@@ -21,6 +21,13 @@ void SEE() {
std::string fen = tokens[0];
board.SetByFen(fen);
// Trim whitespaces
tokens[1].erase(0, tokens[1].find_first_not_of(" \t\r\n"));
tokens[1].erase(tokens[1].find_last_not_of(" \t\r\n") + 1);
tokens[2].erase(0, tokens[2].find_first_not_of(" \t\r\n"));
tokens[2].erase(tokens[2].find_last_not_of(" \t\r\n") + 1);
Move move = UTILS::parseMove(board, tokens[1]);
int gain = std::stoi(tokens[2]);