Merge pull request #100 from rektdie/lmp-formula
Lmp formula bench 6293651
This commit was merged in pull request #100.
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -461,9 +461,9 @@ SearchResults PVS(Board& board, int depth, int alpha, int beta, int ply, SearchC
|
|||||||
// Late move pruning
|
// Late move pruning
|
||||||
// If we are near a leaf node we prune moves
|
// If we are near a leaf node we prune moves
|
||||||
// that are late in the list
|
// that are late in the list
|
||||||
if (!isPV && !board.InCheck() && currMove.IsQuiet() && notMated) {
|
if (currMove.IsQuiet() && notMated) {
|
||||||
|
|
||||||
int lmpThreshold = 7 + 4 * depth;
|
int lmpThreshold = 7 + depth * depth;
|
||||||
|
|
||||||
if (moveSeen >= lmpThreshold) {
|
if (moveSeen >= lmpThreshold) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user