diff --git a/source/main.cpp b/source/main.cpp index e0ed672..830714c 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -51,8 +51,6 @@ int main(int argc, char* argv[]) { Board board; - //TEST::SEE(); - if (argc > 1) { if (std::string(argv[1]) == "bench") { RunBenchmark(); diff --git a/source/search.h b/source/search.h index f2c8934..40db895 100644 --- a/source/search.h +++ b/source/search.h @@ -27,7 +27,7 @@ constexpr int inf = 100000; inline int lmrTable[MAX_DEPTH+1][MAX_MOVES]; constexpr std::array SEEPieceValues = { - 100, 300, 300, 500, 900, 0 + 100, 300, 350, 500, 900, 0 }; void InitLMRTable(); diff --git a/source/tests.cpp b/source/tests.cpp index 0598874..a4ffb40 100644 --- a/source/tests.cpp +++ b/source/tests.cpp @@ -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]);