diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:41:35 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-24 00:41:35 +0100 |
commit | 5d95e1efa0d299df6441f914338df0525339b0fe (patch) | |
tree | 434e79739f9bd7c7eee9e5580238e42f3052920c /FICS | |
parent | e63e2a53b21210f015cf21be92717473c6d1c93e (diff) |
Moved macro
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/board.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FICS/board.h b/FICS/board.h index 99c55d6..6741ee2 100644 --- a/FICS/board.h +++ b/FICS/board.h @@ -45,6 +45,9 @@ #define MAX_BOARD_STRING_LEGTH 1280 /* Arbitrarily 80 * 16 */ #define MAX_STYLES 13 +#define MoveToHalfMove(gs) \ + ((((gs)->moveNum - 1) * 2) + (((gs)->onMove == WHITE) ? 0 : 1)) + #define W_PAWN (PAWN | WHITE) #define W_KNIGHT (KNIGHT | WHITE) #define W_BISHOP (BISHOP | WHITE) @@ -106,8 +109,6 @@ typedef struct _move_t { unsigned tookTime; } move_t; -#define MoveToHalfMove( gs ) ((((gs)->moveNum - 1) * 2) + (((gs)->onMove == WHITE) ? 0 : 1)) - extern char *wpstring[]; extern char *bpstring[]; |