aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/board.h')
-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[];