X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=move.h;h=c83f155a129cbe7fb974e58da8296a5aaf2e008e;hp=b6e70815a6bd383ad2816afb026c1c6b182c002a;hb=e15efca6667b2673b4c1a5879a6917eab6800e58;hpb=0d182b4efac85dce968068bfe4509e52e9a30051 diff --git a/move.h b/move.h index b6e7081..c83f155 100644 --- a/move.h +++ b/move.h @@ -9,15 +9,16 @@ #include "board.h" #include "util.h" -// constants +// defined -const int MoveNone = 0; // HACK: a1a1 cannot be a legal move +// HACK: a1a1 cannot be a legal move +#define MoveNone (0) -const int MovePromoteKnight = 1 << 12; -const int MovePromoteBishop = 2 << 12; -const int MovePromoteRook = 3 << 12; -const int MovePromoteQueen = 4 << 12; -const int MoveFlags = 7 << 12; +#define MovePromoteKnight (1 << 12) +#define MovePromoteBishop (2 << 12) +#define MovePromoteRook (3 << 12) +#define MovePromoteQueen (4 << 12) +#define MoveFlags (7 << 12) // types