Skip to content

Commit

Permalink
Restrict atomic PSQT bonus to non-king pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Mar 19, 2021
1 parent 634e78b commit 666d795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psqt.cpp
Expand Up @@ -239,7 +239,7 @@ void init(const Variant* v) {
if (f == FILE_A && (r == RANK_1 || r == v->maxRank))
psq[pc][s] += make_score(1000, 1000);
}
if (v->blastOnCapture)
if (v->blastOnCapture && v->extinctionPieceTypes.find(pt) == v->extinctionPieceTypes.end())
psq[pc][s] += make_score(40, 0) * (r - v->maxRank / 2);
psq[~pc][rank_of(s) <= v->maxRank ? flip_rank(s, v->maxRank) : s] = -psq[pc][s];
}
Expand Down

0 comments on commit 666d795

Please sign in to comment.