mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Isolated pawns tweak
Give opposed doubled isolated pawns only the Doubled penalty. The other isolated pawns get the Isolated penalty and the WeakUnopposed penalty. The popcount condition has been replaced with an opposed check, which is non-functional, but probably gives a speed-up. Passed STC (https://tests.stockfishchess.org/tests/view/5ed0f0f0042fa6d77c3552f5): LLR: 2.96 (-2.94,2.94) {-0.50,1.50} Total: 121832 W: 23562 L: 23195 D: 75075 Ptnml(0-2): 2092, 14064, 28313, 14279, 2168 LTC: (https://tests.stockfishchess.org/tests/view/5ed22e40042fa6d77c355387) LLR: 2.96 (-2.94,2.94) {0.25,1.75} Total: 103368 W: 13232 L: 12768 D: 77368 Ptnml(0-2): 693, 9484, 30919, 9842, 746 closes https://github.com/official-stockfish/Stockfish/pull/2706 Bench: 4085694
This commit is contained in:
parent
616eb60008
commit
8c3d9d996a
1 changed files with 5 additions and 5 deletions
|
@ -145,13 +145,13 @@ namespace {
|
|||
|
||||
else if (!neighbours)
|
||||
{
|
||||
score -= Isolated
|
||||
+ WeakUnopposed * !opposed;
|
||||
|
||||
if ( (ourPawns & forward_file_bb(Them, s))
|
||||
&& popcount(opposed) == 1
|
||||
if ( opposed
|
||||
&& (ourPawns & forward_file_bb(Them, s))
|
||||
&& !(theirPawns & adjacent_files_bb(s)))
|
||||
score -= Doubled;
|
||||
else
|
||||
score -= Isolated
|
||||
+ WeakUnopposed * !opposed;
|
||||
}
|
||||
|
||||
else if (backward)
|
||||
|
|
Loading…
Add table
Reference in a new issue