Skip to content

Commit

Permalink
Adjust PSQT bonus
Browse files Browse the repository at this point in the history
  • Loading branch information
ianfab committed Mar 5, 2021
1 parent 3859f58 commit 596cbda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/psqt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void init(const Variant* v) {
psq[pc][s] += make_score(1000, 1000);
}
if (v->blastOnCapture)
psq[pc][s] += make_score(20, 0) * r;
psq[pc][s] += make_score(20, 0) * (r - 1);
psq[~pc][rank_of(s) <= v->maxRank ? flip_rank(s, v->maxRank) : s] = -psq[pc][s];
}
// pieces in pocket
Expand Down

0 comments on commit 596cbda

Please sign in to comment.