Skip to content

Commit 89cc86b

Browse files
authored
Merge pull request official-stockfish#1325 from IIvec/master
nm
2 parents dd2552b + 767b4f4 commit 89cc86b

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

src/pawns.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ namespace {
3030
#define S(mg, eg) make_score(mg, eg)
3131

3232
// Pawn penalties
33-
constexpr Score Backward = S( 8, 27);
34-
constexpr Score Doubled = S(11, 55);
35-
constexpr Score Isolated = S( 5, 17);
36-
constexpr Score WeakLever = S( 2, 54);
37-
constexpr Score WeakUnopposed = S(15, 25);
33+
constexpr Score Backward = S( 8, 25);
34+
constexpr Score Doubled = S(10, 55);
35+
constexpr Score Isolated = S( 3, 15);
36+
constexpr Score WeakLever = S( 3, 55);
37+
constexpr Score WeakUnopposed = S(13, 25);
3838

3939
// Bonus for blocked pawns at 5th or 6th rank
40-
constexpr Score BlockedPawn[2] = { S(-13, -4), S(-4, 3) };
40+
constexpr Score BlockedPawn[2] = { S(-13, -4), S(-5, 2) };
4141

4242
constexpr Score BlockedStorm[RANK_NB] = {
4343
S(0, 0), S(0, 0), S(76, 78), S(-10, 15), S(-7, 10), S(-4, 6), S(-1, 2)
4444
};
4545

4646
// Connected pawn bonus
47-
constexpr int Connected[RANK_NB] = { 0, 7, 8, 11, 24, 45, 85 };
47+
constexpr int Connected[RANK_NB] = { 0, 5, 7, 11, 24, 48, 86 };
4848

4949
// Strength of pawn shelter for our king by [distance from edge][rank].
5050
// RANK_1 = 0 is used for files where we have no pawn, or pawn is behind our king.
@@ -147,7 +147,7 @@ namespace {
147147
if (support | phalanx)
148148
{
149149
int v = Connected[r] * (2 + bool(phalanx) - bool(opposed))
150-
+ 21 * popcount(support);
150+
+ 22 * popcount(support);
151151

152152
score += make_score(v, v * (r - 2) / 4);
153153
}

src/search.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,15 +1057,6 @@ namespace {
10571057
&& captureHistory[movedPiece][to_sq(move)][type_of(pos.piece_on(to_sq(move)))] < 0)
10581058
continue;
10591059

1060-
// Futility pruning for captures
1061-
if ( !givesCheck
1062-
&& lmrDepth < 6
1063-
&& !(PvNode && abs(bestValue) < 2)
1064-
&& !ss->inCheck
1065-
&& ss->staticEval + 169 + 244 * lmrDepth
1066-
+ PieceValue[MG][type_of(pos.piece_on(to_sq(move)))] <= alpha)
1067-
continue;
1068-
10691060
// See based pruning
10701061
if (!pos.see_ge(move, Value(-221) * depth)) // (~25 Elo)
10711062
continue;

tests/instrumented.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ case $1 in
2020
--valgrind-thread)
2121
echo "valgrind-thread testing started"
2222
prefix=''
23-
exeprefix='valgrind --error-exitcode=42'
23+
exeprefix='valgrind --fair-sched=try --error-exitcode=42'
2424
postfix='1>/dev/null'
2525
threads="2"
2626
;;

0 commit comments

Comments
 (0)