]> git.sesse.net Git - stockfish/blobdiff - src/types.h
Assorted code style and comments in pawns.cpp and pawns.h
[stockfish] / src / types.h
index bf0a03f49e9e1d367de21c9e33b7cbd55e90efb2..f5e30c7401bc82a14fd37d47bbc7b55082475a07 100644 (file)
@@ -463,4 +463,8 @@ inline bool square_is_ok(Square s) {
   return s >= SQ_A1 && s <= SQ_H8;
 }
 
   return s >= SQ_A1 && s <= SQ_H8;
 }
 
+inline Square pawn_push(Color c) {
+  return c == WHITE ? DELTA_N : DELTA_S;
+}
+
 #endif // !defined(TYPES_H_INCLUDED)
 #endif // !defined(TYPES_H_INCLUDED)