changed TT writing and reading to fail-soft
This commit is contained in:
1 parent
9e662e8e0c
commit
8aa244da16
3 files changed
+3
-69
No files matched your search
+1
-2
@@ -184,7 +184,6 @@ SearchResults PVS(Board board, int depth, int alpha, int beta) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int score = -inf;
|
||||
@@ -235,7 +234,7 @@ SearchResults PVS(Board board, int depth, int alpha, int beta) {
|
||||
killerMoves[1][ply] = killerMoves[0][ply];
|
||||
killerMoves[0][ply] = board.moveList[i];
|
||||
|
||||
WriteEntry(board.hashKey, depth, beta, CutNode, Move());
|
||||
WriteEntry(board.hashKey, depth, score, CutNode, Move());
|
||||
return score;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user