mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Tweak outpost name
This name is more accurate, since that function evaluates only one outpost in every call. No functional change.
This commit is contained in:
parent
2312c26722
commit
e10276f45d
1 changed files with 4 additions and 4 deletions
|
@ -231,10 +231,10 @@ namespace {
|
|||
}
|
||||
|
||||
|
||||
// evaluate_outposts() evaluates bishop and knight outpost squares
|
||||
// evaluate_outpost() evaluates bishop and knight outpost squares
|
||||
|
||||
template<PieceType Pt, Color Us>
|
||||
Score evaluate_outposts(const Position& pos, EvalInfo& ei, Square s) {
|
||||
Score evaluate_outpost(const Position& pos, const EvalInfo& ei, Square s) {
|
||||
|
||||
const Color Them = (Us == WHITE ? BLACK : WHITE);
|
||||
|
||||
|
@ -315,9 +315,9 @@ namespace {
|
|||
if (Pt == BISHOP)
|
||||
score -= BishopPawns * ei.pi->pawns_on_same_color_squares(Us, s);
|
||||
|
||||
// Bishop and knight outposts squares
|
||||
// Bishop and knight outpost square
|
||||
if (!(pos.pieces(Them, PAWN) & pawn_attack_span(Us, s)))
|
||||
score += evaluate_outposts<Pt, Us>(pos, ei, s);
|
||||
score += evaluate_outpost<Pt, Us>(pos, ei, s);
|
||||
|
||||
// Bishop or knight behind a pawn
|
||||
if ( relative_rank(Us, s) < RANK_5
|
||||
|
|
Loading…
Add table
Reference in a new issue