1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-02 09:39:36 +00:00

Double pinner bonus

Fine tune newly introduced pinner bonus score:

After 34696 games at 2"+0.05
Mod vs Orig 7474 - 7087 - 20135 ELO +3 (+- 2.4)

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2012-02-25 12:45:34 +01:00
parent d8e56cbe54
commit 843a5961e1

View file

@ -534,7 +534,7 @@ namespace {
assert(b);
if (single_bit(b) && (b & pos.pieces(Them)))
score += ThreatBonus[Piece][type_of(pos.piece_on(first_1(b)))] / 2;
score += ThreatBonus[Piece][type_of(pos.piece_on(first_1(b)))];
}
// Decrease score if we are attacked by an enemy pawn. Remaining part