Skip to content

Commit d4a02b1

Browse files
uriblassmcostalba
authored andcommitted
Bunch of 3 small patches
This patch is the sum of: - Grainsize of 4 instead of 8 - Removing "depth < DEPTH_ZERO" - Change DEPTH_QS_RECAPTURES = -5 to -7 All the patches individually failed to pass SPRT but scored around 50%. Together they pass easily short TC: LLR: 2.96 (-2.94,2.94) Total: 4429 W: 964 L: 844 D: 2621 And with some difficult long TC of 60+0.05: LLR: 2.95 (-2.94,2.94) Total: 64133 W: 11968 L: 11532 D: 40633 bench: 4821467
1 parent d3608c4 commit d4a02b1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace {
7272
};
7373

7474
// Evaluation grain size, must be a power of 2
75-
const int GrainSize = 8;
75+
const int GrainSize = 4;
7676

7777
// Evaluation weights, initialized from UCI options
7878
enum { Mobility, PassedPawns, Space, KingDangerUs, KingDangerThem };

src/search.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,6 @@ namespace {
12511251
// Prune moves with negative or equal SEE and also moves with positive
12521252
// SEE where capturing piece loses a tempo and SEE < beta - futilityBase.
12531253
if ( futilityBase < beta
1254-
&& depth < DEPTH_ZERO
12551254
&& pos.see(move, beta - futilityBase) <= 0)
12561255
{
12571256
bestValue = std::max(bestValue, futilityBase);

src/types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ enum Depth {
213213
DEPTH_ZERO = 0 * ONE_PLY,
214214
DEPTH_QS_CHECKS = -1 * ONE_PLY,
215215
DEPTH_QS_NO_CHECKS = -2 * ONE_PLY,
216-
DEPTH_QS_RECAPTURES = -5 * ONE_PLY,
216+
DEPTH_QS_RECAPTURES = -7 * ONE_PLY,
217217

218218
DEPTH_NONE = -127 * ONE_PLY
219219
};

0 commit comments

Comments
 (0)