-\r
-// move.h\r
-\r
-#ifndef MOVE_H\r
-#define MOVE_H\r
-\r
-// includes\r
-\r
-#include "board.h"\r
-#include "util.h"\r
-\r
-// defined\r
-\r
-// HACK: a1a1 cannot be a legal move\r
-#define MoveNone (0) \r
-\r
-#define MovePromoteKnight (1 << 12)\r
-#define MovePromoteBishop (2 << 12)\r
-#define MovePromoteRook (3 << 12)\r
-#define MovePromoteQueen (4 << 12)\r
-#define MoveFlags (7 << 12)\r
-\r
-// types\r
-\r
-typedef uint16 move_t;\r
-\r
-// functions\r
-\r
-extern bool move_is_ok (int move);\r
-\r
-extern int move_make (int from, int to);\r
-extern int move_make_flags (int from, int to, int flags);\r
-\r
-extern int move_from (int move);\r
-extern int move_to (int move);\r
-extern int move_promote_hack (int move);\r
-\r
-extern bool move_is_capture (int move, const board_t * board);\r
-extern bool move_is_promote (int move);\r
-extern bool move_is_en_passant (int move, const board_t * board);\r
-extern bool move_is_castle (int move, const board_t * board);\r
-\r
-extern int move_piece (int move, const board_t * board);\r
-extern int move_capture (int move, const board_t * board);\r
-extern int move_promote (int move, const board_t * board);\r
-\r
-extern bool move_is_check (int move, const board_t * board);\r
-extern bool move_is_mate (int move, const board_t * board);\r
-\r
-extern int move_order (int move);\r
-\r
-extern bool move_to_can (int move, const board_t * board, char string[], int size);\r
-extern int move_from_can (const char string[], const board_t * board);\r
-\r
-extern void move_disp (int move, const board_t * board);\r
-\r
-#endif // !defined MOVE_H\r
-\r
-// end of move.h\r
-\r
+
+// move.h
+
+#ifndef MOVE_H
+#define MOVE_H
+
+// includes
+
+#include "board.h"
+#include "util.h"
+
+// defined
+
+// HACK: a1a1 cannot be a legal move
+#define MoveNone (0)
+
+#define MovePromoteKnight (1 << 12)
+#define MovePromoteBishop (2 << 12)
+#define MovePromoteRook (3 << 12)
+#define MovePromoteQueen (4 << 12)
+#define MoveFlags (7 << 12)
+
+// types
+
+typedef uint16 move_t;
+
+// functions
+
+extern bool move_is_ok (int move);
+
+extern int move_make (int from, int to);
+extern int move_make_flags (int from, int to, int flags);
+
+extern int move_from (int move);
+extern int move_to (int move);
+extern int move_promote_hack (int move);
+
+extern bool move_is_capture (int move, const board_t * board);
+extern bool move_is_promote (int move);
+extern bool move_is_en_passant (int move, const board_t * board);
+extern bool move_is_castle (int move, const board_t * board);
+
+extern int move_piece (int move, const board_t * board);
+extern int move_capture (int move, const board_t * board);
+extern int move_promote (int move, const board_t * board);
+
+extern bool move_is_check (int move, const board_t * board);
+extern bool move_is_mate (int move, const board_t * board);
+
+extern int move_order (int move);
+
+extern bool move_to_can (int move, const board_t * board, char string[], int size);
+extern int move_from_can (const char string[], const board_t * board);
+
+extern void move_disp (int move, const board_t * board);
+
+#endif // !defined MOVE_H
+
+// end of move.h
+