aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-24 00:41:35 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-24 00:41:35 +0100
commit5d95e1efa0d299df6441f914338df0525339b0fe (patch)
tree434e79739f9bd7c7eee9e5580238e42f3052920c
parente63e2a53b21210f015cf21be92717473c6d1c93e (diff)
Moved macro
-rw-r--r--FICS/board.h5
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[];