X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=f5e30c7401bc82a14fd37d47bbc7b55082475a07;hp=bf0a03f49e9e1d367de21c9e33b7cbd55e90efb2;hb=2f1935078da225c90f7887ed8c345cc7baebcfcc;hpb=8e71ee7ec6c1634af5d17f8ba43049f85ef42c53 diff --git a/src/types.h b/src/types.h index bf0a03f4..f5e30c74 100644 --- a/src/types.h +++ b/src/types.h @@ -463,4 +463,8 @@ inline bool square_is_ok(Square s) { 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)