From 4e1418ae239647d88c39c8eb52c4e949da82070a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Dec 2023 23:54:35 +0100 Subject: Moved vars --- FICS/board.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'FICS/board.c') diff --git a/FICS/board.c b/FICS/board.c index 9a3a5e3..20653a3 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -83,6 +83,15 @@ PRIVATE const int mach_type = ((1 << 7) | PRIVATE char bstring[MAX_BOARD_STRING_LEGTH]; +/* + * Globals used for each board + */ +PRIVATE char *wName, *bName; +PRIVATE int wTime, bTime; +PRIVATE int orient; +PRIVATE int forPlayer; +PRIVATE int myTurn; + PUBLIC int board_init(game_state_t *b, char *category, char *board) { int retval; @@ -195,15 +204,6 @@ PUBLIC void update_holding(int g, int pieceCaptured) } } -/* Globals used for each board */ -PRIVATE char *wName, *bName; -PRIVATE int wTime, bTime; -PRIVATE int orient; -PRIVATE int forPlayer; -PRIVATE int myTurn; /* 1 = my turn, 0 = observe, -1 = other turn */ - /* 2 = examiner, -2 = observing examiner */ - /* -3 = just send position (spos/refresh) */ - PUBLIC char * board_to_string(char *wn, char *bn, int wt, int bt, game_state_t *b, move_t *ml, int style, int orientation, int relation, int p) -- cgit v1.2.3