Skip to content

Commit e10276f

Browse files
R-Pelegmcostalba
authored andcommitted
Tweak outpost name
This name is more accurate, since that function evaluates only one outpost in every call. No functional change.
1 parent 2312c26 commit e10276f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/evaluate.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ namespace {
231231
}
232232

233233

234-
// evaluate_outposts() evaluates bishop and knight outpost squares
234+
// evaluate_outpost() evaluates bishop and knight outpost squares
235235

236236
template<PieceType Pt, Color Us>
237-
Score evaluate_outposts(const Position& pos, EvalInfo& ei, Square s) {
237+
Score evaluate_outpost(const Position& pos, const EvalInfo& ei, Square s) {
238238

239239
const Color Them = (Us == WHITE ? BLACK : WHITE);
240240

@@ -315,9 +315,9 @@ namespace {
315315
if (Pt == BISHOP)
316316
score -= BishopPawns * ei.pi->pawns_on_same_color_squares(Us, s);
317317

318-
// Bishop and knight outposts squares
318+
// Bishop and knight outpost square
319319
if (!(pos.pieces(Them, PAWN) & pawn_attack_span(Us, s)))
320-
score += evaluate_outposts<Pt, Us>(pos, ei, s);
320+
score += evaluate_outpost<Pt, Us>(pos, ei, s);
321321

322322
// Bishop or knight behind a pawn
323323
if ( relative_rank(Us, s) < RANK_5

0 commit comments

Comments
 (0)