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
+1 -1
View File
@@ -198,7 +198,7 @@ Score Entry::evaluate_shelter(const Position& pos, Square ksq) {
b = theirPawns & file_bb(f);
int theirRank = b ? relative_rank(Us, frontmost_sq(Them, b)) : 0;
int d = map_to_queenside(f);
int d = std::min(f, ~f);
bonus += make_score(ShelterStrength[d][ourRank], 0);
if (ourRank && (ourRank == theirRank - 1))