]> git.sesse.net Git - stockfish/blobdiff - src/psqt.cpp
Equations for edges and corners.
[stockfish] / src / psqt.cpp
index f6f5933cb250ab394e2030cdc6fb35954bc3ac45..d86e98e4ee3ff87a285aa450f8e84693b8cdc9d5 100644 (file)
@@ -21,6 +21,7 @@
 #include <algorithm>
 
 #include "types.h"
+#include "bitboard.h"
 
 namespace PSQT {
 
@@ -111,7 +112,7 @@ void init() {
 
       for (Square s = SQ_A1; s <= SQ_H8; ++s)
       {
-          File f = map_to_queenside(file_of(s));
+          File f = 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][flip_rank(s)] = -psq[pc][s];