mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Isolated pawn simplification
STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 117822 W: 21697 L: 21744 D: 74381 LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 92307 W: 12330 L: 12305 D: 67672 Bench: 8813983 Resolves #659
This commit is contained in:
parent
e082112cfe
commit
2694ef23c3
1 changed files with 3 additions and 7 deletions
|
@ -31,12 +31,8 @@ namespace {
|
|||
#define V Value
|
||||
#define S(mg, eg) make_score(mg, eg)
|
||||
|
||||
// Isolated pawn penalty by opposed flag and file
|
||||
const Score Isolated[2][FILE_NB] = {
|
||||
{ S(31, 36), S(45, 41), S(50, 41), S(50, 41),
|
||||
S(50, 41), S(50, 41), S(45, 41), S(31, 36) },
|
||||
{ S(21, 24), S(30, 28), S(33, 28), S(33, 28),
|
||||
S(33, 28), S(33, 28), S(30, 28), S(21, 24) } };
|
||||
// Isolated pawn penalty by opposed flag
|
||||
const Score Isolated[2] = { S(45, 40), S(30, 27) };
|
||||
|
||||
// Backward pawn penalty by opposed flag
|
||||
const Score Backward[2] = { S(56, 33), S(41, 19) };
|
||||
|
@ -161,7 +157,7 @@ namespace {
|
|||
|
||||
// Score this pawn
|
||||
if (!neighbours)
|
||||
score -= Isolated[opposed][f];
|
||||
score -= Isolated[opposed];
|
||||
|
||||
else if (backward)
|
||||
score -= Backward[opposed];
|
||||
|
|
Loading…
Add table
Reference in a new issue