Skip to content

Commit 9d0c43d

Browse files
authored
Add improving to RFP and adjust the margin (#204)
Bench 2784469 Elo | 1.77 +- 1.82 (95%) SPRT | 10.0+0.10s Threads=1 Hash=8MB LLR | 2.95 (-2.94, 2.94) [0.00, 3.00] Games | N: 63892 W: 14858 L: 14533 D: 34501 Penta | [294, 7506, 16024, 7825, 297] http://chess.grantnet.us/test/34904/ Elo | 2.92 +- 2.81 (95%) SPRT | 60.0+0.60s Threads=1 Hash=64MB LLR | 2.95 (-2.94, 2.94) [0.00, 3.00] Games | N: 26522 W: 6097 L: 5874 D: 14551 Penta | [24, 2970, 7046, 3201, 20] http://chess.grantnet.us/test/34915/
1 parent 68ab36b commit 9d0c43d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/search.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ int search(Thread *thread, PVariation *pv, int alpha, int beta, int depth, bool
488488
&& !inCheck
489489
&& !ns->excluded
490490
&& depth <= BetaPruningDepth
491-
&& eval - BetaMargin * depth > beta)
491+
&& eval - BetaMargin * MAX(0, (depth - improving)) >= beta)
492492
return eval;
493493

494494
// Step 8 (~3 elo). Alpha Pruning for main search loop. The idea is

src/search.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static const int CurrmoveTimerMS = 2500;
4747
static const int TTResearchMargin = 141;
4848

4949
static const int BetaPruningDepth = 8;
50-
static const int BetaMargin = 57;
50+
static const int BetaMargin = 65;
5151

5252
static const int AlphaPruningDepth = 4;
5353
static const int AlphaMargin = 3488;

src/uci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "types.h"
2525

26-
#define VERSION_ID "14.25"
26+
#define VERSION_ID "14.28"
2727

2828
#ifndef LICENSE_OWNER
2929
#define LICENSE_OWNER "Unlicensed"

0 commit comments

Comments
 (0)