fixed SEE test | bench 3036761
This commit is contained in:
1 parent
71c3e64e3b
commit
9281f6f0f9
3 files changed
+8
-3
No files matched your search
@@ -51,8 +51,6 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
Board board;
|
||||
|
||||
//TEST::SEE();
|
||||
|
||||
if (argc > 1) {
|
||||
if (std::string(argv[1]) == "bench") {
|
||||
RunBenchmark();
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ constexpr int inf = 100000;
|
||||
inline int lmrTable[MAX_DEPTH+1][MAX_MOVES];
|
||||
|
||||
constexpr std::array<int, 6> SEEPieceValues = {
|
||||
100, 300, 300, 500, 900, 0
|
||||
100, 300, 350, 500, 900, 0
|
||||
};
|
||||
|
||||
void InitLMRTable();
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in new issue
Block a user