mirror of
https://github.com/sockspls/badfish
synced 2025-05-02 09:39:36 +00:00
Retire loose enemies bonus
STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 44727 W: 7943 L: 7862 D: 28922 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 148343 W: 19044 L: 19088 D: 110211 Bench: 5669076 Closes #1005
This commit is contained in:
parent
83fb4547f6
commit
faedcf08a8
1 changed files with 0 additions and 6 deletions
|
@ -190,7 +190,6 @@ namespace {
|
||||||
const Score OtherCheck = S(10, 10);
|
const Score OtherCheck = S(10, 10);
|
||||||
const Score CloseEnemies = S( 7, 0);
|
const Score CloseEnemies = S( 7, 0);
|
||||||
const Score PawnlessFlank = S(20, 80);
|
const Score PawnlessFlank = S(20, 80);
|
||||||
const Score LooseEnemies = S( 0, 25);
|
|
||||||
const Score ThreatByHangingPawn = S(71, 61);
|
const Score ThreatByHangingPawn = S(71, 61);
|
||||||
const Score ThreatByRank = S(16, 3);
|
const Score ThreatByRank = S(16, 3);
|
||||||
const Score Hanging = S(48, 27);
|
const Score Hanging = S(48, 27);
|
||||||
|
@ -515,11 +514,6 @@ namespace {
|
||||||
Bitboard b, weak, defended, safeThreats;
|
Bitboard b, weak, defended, safeThreats;
|
||||||
Score score = SCORE_ZERO;
|
Score score = SCORE_ZERO;
|
||||||
|
|
||||||
// Small bonus if the opponent has loose pawns or pieces
|
|
||||||
if ( (pos.pieces(Them) ^ pos.pieces(Them, QUEEN, KING))
|
|
||||||
& ~(ei.attackedBy[Us][ALL_PIECES] | ei.attackedBy[Them][ALL_PIECES]))
|
|
||||||
score += LooseEnemies;
|
|
||||||
|
|
||||||
// Non-pawn enemies attacked by a pawn
|
// Non-pawn enemies attacked by a pawn
|
||||||
weak = (pos.pieces(Them) ^ pos.pieces(Them, PAWN)) & ei.attackedBy[Us][PAWN];
|
weak = (pos.pieces(Them) ^ pos.pieces(Them, PAWN)) & ei.attackedBy[Us][PAWN];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue