- char ch[] = { file_to_char(square_file(s)), rank_to_char(square_rank(s)), 0 };
- return std::string(ch);
-}
-
-inline bool file_is_ok(File f) {
- return f >= FILE_A && f <= FILE_H;
-}
-
-inline bool rank_is_ok(Rank r) {
- return r >= RANK_1 && r <= RANK_8;
-}
-
-inline bool square_is_ok(Square s) {
- return s >= SQ_A1 && s <= SQ_H8;