Skip to content

Commit

Permalink
Merge branch 'ps_passedcount100' into ps_combo101
Browse files Browse the repository at this point in the history
  • Loading branch information
protonspring committed Apr 15, 2019
2 parents b0796d9 + 68ba8cc commit a1cf8ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/pawns.cpp
Expand Up @@ -164,7 +164,6 @@ Entry* probe(const Position& pos) {
e->key = key;
e->scores[WHITE] = evaluate<WHITE>(pos, e);
e->scores[BLACK] = evaluate<BLACK>(pos, e);
e->passedCount= popcount(e->passedPawns[WHITE] | e->passedPawns[BLACK]);

return e;
}
Expand Down
3 changes: 1 addition & 2 deletions src/pawns.h
Expand Up @@ -38,7 +38,7 @@ struct Entry {
Bitboard passed_pawns(Color c) const { return passedPawns[c]; }
Bitboard pawn_attacks_span(Color c) const { return pawnAttacksSpan[c]; }
int weak_unopposed(Color c) const { return weakUnopposed[c]; }
int passed_count() const { return passedCount; }
int passed_count() const { return popcount(passedPawns[WHITE] | passedPawns[BLACK]); };

int semiopen_file(Color c, File f) const {
return semiopenFiles[c] & (1 << f);
Expand Down Expand Up @@ -67,7 +67,6 @@ struct Entry {
int castlingRights[COLOR_NB];
int semiopenFiles[COLOR_NB];
int pawnsOnSquares[COLOR_NB][COLOR_NB]; // [color][light/dark squares]
int passedCount;
};

typedef HashTable<Entry, 16384> Table;
Expand Down

0 comments on commit a1cf8ae

Please sign in to comment.