Revert "Clarify the mapping of files to queenside"

This reverts commit 7756344d5d.
This commit is contained in:
Stéphane Nicolet
2019-09-23 09:10:28 +02:00
parent 7756344d5d
commit 302e0f70c6
4 changed files with 3 additions and 7 deletions

View File

@@ -119,7 +119,7 @@ void init() {
for (Square s = SQ_A1; s <= SQ_H8; ++s)
{
File f = map_to_queenside(file_of(s));
File f = std::min(file_of(s), ~file_of(s));
psq[ pc][ s] = score + (type_of(pc) == PAWN ? PBonus[rank_of(s)][file_of(s)]
: Bonus[pc][rank_of(s)][f]);
psq[~pc][~s] = -psq[pc][s];