mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Remove ThreatByHangingPawn bonus (#1356)
* no ThreatByHangingPawn * bench: 4919682
This commit is contained in:
parent
9afa1d7330
commit
66ce8ad5fd
1 changed files with 0 additions and 4 deletions
|
@ -220,7 +220,6 @@ namespace {
|
|||
const Score WeakQueen = S( 50, 10);
|
||||
const Score CloseEnemies = S( 7, 0);
|
||||
const Score PawnlessFlank = S( 20, 80);
|
||||
const Score ThreatByHangingPawn = S( 71, 61);
|
||||
const Score ThreatBySafePawn = S(192,175);
|
||||
const Score ThreatByRank = S( 16, 3);
|
||||
const Score Hanging = S( 48, 27);
|
||||
|
@ -543,9 +542,6 @@ namespace {
|
|||
safeThreats = (shift<Right>(b) | shift<Left>(b)) & weak;
|
||||
|
||||
score += ThreatBySafePawn * popcount(safeThreats);
|
||||
|
||||
if (weak ^ safeThreats)
|
||||
score += ThreatByHangingPawn;
|
||||
}
|
||||
|
||||
// Squares strongly protected by the opponent, either because they attack the
|
||||
|
|
Loading…
Add table
Reference in a new issue