#include <algorithm>
#include "types.h"
+#include "bitboard.h"
namespace PSQT {
for (Square s = SQ_A1; s <= SQ_H8; ++s)
{
- File f = map_to_queenside(file_of(s));
+ File f = File(edge_distance(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];
+ psq[~pc][flip_rank(s)] = -psq[pc][s];
}
}
}