diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:34:21 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:34:21 +0100 |
commit | 33b454eb8f84bfd844621a70866b1d3b3d05bd80 (patch) | |
tree | 089a5a85e701b9dc855c9d7f765961b17d669d79 /FICS | |
parent | bf673d4b796f01c46f827760cd8063b7b2c3a3b0 (diff) |
Sorted defines
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/board.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/FICS/board.h b/FICS/board.h index 37fb810..80b14a5 100644 --- a/FICS/board.h +++ b/FICS/board.h @@ -59,12 +59,13 @@ #define B_QUEEN (QUEEN | BLACK) #define B_KING (KING | BLACK) -#define isblack(p) ((p) & BLACK) -#define iswhite(p) (!isblack(p)) -#define iscolor(p,color) (((p) & BLACK) == (color)) -#define piecetype(p) ((p) & 0x7f) -#define colorval(p) ((p) & 0x80) -#define square_color(r,f) ((((r)+(f)) & 0x01) ? BLACK : WHITE) +#define isblack(p) ((p) & BLACK) +#define iswhite(p) (!isblack(p)) +#define iscolor(p, color) (((p) & BLACK) == (color)) + +#define colorval(p) ((p) & 0x80) +#define piecetype(p) ((p) & 0x7f) +#define square_color(r, f) ((((r) + (f)) & 0x01) ? BLACK : WHITE) extern int pieceValues[7]; |