]> git.sesse.net Git - stockfish/blobdiff - src/pawns.h
Retire piece_type_from_char()
[stockfish] / src / pawns.h
index e41044091566050567d413cb2d5888dba6585538..77a09f29acae57eeb95273f3c3dcecd8d28139e2 100644 (file)
@@ -93,6 +93,10 @@ private:
 //// Inline functions
 ////
 
+inline Square pawn_push(Color c) {
+  return c == WHITE ? DELTA_N : DELTA_S;
+}
+
 inline void PawnInfoTable::prefetch(Key key) const {
 
     unsigned index = unsigned(key & (PawnTableSize - 1));