-inline bool piece_type_is_ok(PieceType pt) {
- return pt >= PAWN && pt <= KING;
-}
-
-inline bool piece_is_ok(Piece p) {
- return piece_type_is_ok(type_of_piece(p)) && color_is_ok(color_of_piece(p));
-}
-
-inline char piece_type_to_char(PieceType pt) {
- static const char ch[] = " PNBRQK";
- return ch[pt];
+inline Square make_square(File f, Rank r) {
+ return Square((r << 3) | f);