Skip to content

Commit 41bc0d5

Browse files
miguel-lsnicolet
authored andcommitted
Remove connectivity.
There seems to be some strange interaction between Overload and Connectivity. Overload encourages us to not have too many defended and attacked pieces, as this may expose us to various tactics. This feels somewhat like it is in conflict with Connectivity, where pieces are defended preemptively. Here I take the "pick one or the other" approach and just remove connectivity, while strengthening the effect of Overload to compensate. The reasoning is that if we defend our pieces preemptively, then it does get attacked, we want to do something about it so we don't get penalized by Overload. On the other hand, if it doesn't get attacked, then there's no need to defend it. STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 27734 W: 6174 L: 6064 D: 15496 http://tests.stockfishchess.org/tests/view/5b5073bd0ebc5902bdb7ba5c LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 51606 W: 8897 L: 8827 D: 33882 http://tests.stockfishchess.org/tests/view/5b50aa900ebc5902bdb7bf29 Bench: 4658006
1 parent 12e79be commit 41bc0d5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/evaluate.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,14 @@ namespace {
157157
// Assorted bonuses and penalties
158158
constexpr Score BishopPawns = S( 3, 7);
159159
constexpr Score CloseEnemies = S( 6, 0);
160-
constexpr Score Connectivity = S( 3, 1);
161160
constexpr Score CorneredBishop = S( 50, 50);
162161
constexpr Score Hanging = S( 52, 30);
163162
constexpr Score HinderPassedPawn = S( 4, 0);
164163
constexpr Score KingProtector = S( 6, 6);
165164
constexpr Score KnightOnQueen = S( 21, 11);
166165
constexpr Score LongDiagonalBishop = S( 22, 0);
167166
constexpr Score MinorBehindPawn = S( 16, 0);
168-
constexpr Score Overload = S( 10, 5);
167+
constexpr Score Overload = S( 16, 7);
169168
constexpr Score PawnlessFlank = S( 20, 80);
170169
constexpr Score RookOnPawn = S( 8, 24);
171170
constexpr Score SliderOnQueen = S( 42, 21);
@@ -607,10 +606,6 @@ namespace {
607606
score += SliderOnQueen * popcount(b & safeThreats & attackedBy2[Us]);
608607
}
609608

610-
// Connectivity: ensure that knights, bishops, rooks, and queens are protected
611-
b = (pos.pieces(Us) ^ pos.pieces(Us, PAWN, KING)) & attackedBy[Us][ALL_PIECES];
612-
score += Connectivity * popcount(b);
613-
614609
if (T)
615610
Trace::add(THREAT, Us, score);
616611

0 commit comments

Comments
 (0)