Assorted code style and comments in pawns.cpp and pawns.h

The only interesting thing is that a backward or isolated
pawn cannot be a candidate passer, so code this condition.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-04-09 19:50:56 +01:00
parent 8e71ee7ec6
commit 2f1935078d
4 changed files with 65 additions and 83 deletions

View File

@@ -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)