diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:27:23 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:27:28 +0100 |
commit | bf673d4b796f01c46f827760cd8063b7b2c3a3b0 (patch) | |
tree | a6c887052737e01ad9ea97250a2dde4ca6e6b69c /FICS/board.h | |
parent | a09b506c123d0678b14b4c5b5bfd753f629d4eb8 (diff) |
Did reformation
Diffstat (limited to 'FICS/board.h')
-rw-r--r-- | FICS/board.h | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/FICS/board.h b/FICS/board.h index 5db4fb9..37fb810 100644 --- a/FICS/board.h +++ b/FICS/board.h @@ -27,34 +27,37 @@ #define WHITE 0x00 #define BLACK 0x80 -#define CString( c ) (((c) == WHITE) ? "White" : "Black" ) -#define CToggle( c ) (((c) == BLACK) ? WHITE : BLACK ) - -/* These are indexes into an array so their values are not arbitrary */ -#define NOPIECE 0x00 -#define PAWN 0x01 -#define KNIGHT 0x02 -#define BISHOP 0x03 -#define ROOK 0x04 -#define QUEEN 0x05 -#define KING 0x06 - -#define MAX_BOARD_STRING_LEGTH 1280 /* Abitrarily 80 * 16 */ + +#define CString(c) (((c) == WHITE) ? "White" : "Black") +#define CToggle(c) (((c) == BLACK) ? WHITE : BLACK) + +/* + * These are indexes into an array so their values are not arbitrary. + */ +#define NOPIECE 0x00 +#define PAWN 0x01 +#define KNIGHT 0x02 +#define BISHOP 0x03 +#define ROOK 0x04 +#define QUEEN 0x05 +#define KING 0x06 + +#define MAX_BOARD_STRING_LEGTH 1280 /* Arbitrarily 80 * 16 */ #define MAX_STYLES 13 -#define W_PAWN (PAWN | WHITE) -#define W_KNIGHT (KNIGHT | WHITE) -#define W_BISHOP (BISHOP | WHITE) -#define W_ROOK (ROOK | WHITE) -#define W_QUEEN (QUEEN | WHITE) -#define W_KING (KING | WHITE) - -#define B_PAWN (PAWN | BLACK) -#define B_KNIGHT (KNIGHT | BLACK) -#define B_BISHOP (BISHOP | BLACK) -#define B_ROOK (ROOK | BLACK) -#define B_QUEEN (QUEEN | BLACK) -#define B_KING (KING | BLACK) +#define W_PAWN (PAWN | WHITE) +#define W_KNIGHT (KNIGHT | WHITE) +#define W_BISHOP (BISHOP | WHITE) +#define W_ROOK (ROOK | WHITE) +#define W_QUEEN (QUEEN | WHITE) +#define W_KING (KING | WHITE) + +#define B_PAWN (PAWN | BLACK) +#define B_KNIGHT (KNIGHT | BLACK) +#define B_BISHOP (BISHOP | BLACK) +#define B_ROOK (ROOK | BLACK) +#define B_QUEEN (QUEEN | BLACK) +#define B_KING (KING | BLACK) #define isblack(p) ((p) & BLACK) #define iswhite(p) (!isblack(p)) |