Skip to content

Commit 79de4bd

Browse files
authored
3.5.8: check beta score in probcut condition (#298)
Elo | 3.77 +- 2.43 (95%) SPRT | 60.0+0.60s Threads=1 Hash=64MB LLR | 2.95 (-2.94, 2.94) [0.00, 3.00] Games | N: 19608 W: 4963 L: 4750 D: 9895 Penta | [47, 2150, 5199, 2359, 49] http://chess.grantnet.us/test/38222/ Elo | 1.46 +- 1.17 (95%) SPRT | 10.0+0.10s Threads=1 Hash=8MB LLR | 2.94 (-2.94, 2.94) [0.00, 3.00] Games | N: 106578 W: 27237 L: 26789 D: 52552 Penta | [951, 12640, 25653, 13100, 945] http://chess.grantnet.us/test/38221/ bench: 1456967
1 parent 5dfb31b commit 79de4bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/search.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,9 @@ EVAL Search::abSearch(EVAL alpha, EVAL beta, int depth, int ply, bool isNull, bo
306306
// probcut
307307
//
308308

309-
if (depth >= 5) {
310-
auto betaCut = beta + 100;
309+
auto betaCut = beta + 100;
310+
311+
if (depth >= 5 && !(ttHit && hEntry.m_data.depth >= (depth - 4) && hEntry.m_data.score < betaCut)) {
311312
MoveList captureMoves;
312313

313314
GenCapturesAndPromotions(m_position, captureMoves);

src/uci.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <iostream>
3232
#include <sstream>
3333

34-
const std::string VERSION = "3.5.7";
34+
const std::string VERSION = "3.5.8";
3535
const std::string ARCHITECTURE = " 64 "
3636

3737
#if _BTYPE==0

0 commit comments

Comments
 (0)