aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-23 23:54:35 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-23 23:54:35 +0100
commit4e1418ae239647d88c39c8eb52c4e949da82070a (patch)
treea6615cce18a0eb8b93ce77cab9f27d953c156e03 /FICS
parentbbb3db9d4f4d46f77888939b9f2e8d200d84d1ce (diff)
Moved vars
Diffstat (limited to 'FICS')
-rw-r--r--FICS/board.c18
1 files changed, 9 insertions, 9 deletions
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)