aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-23 22:58:16 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-23 22:58:16 +0100
commitab1670dfdad32913227e10ca67ef086e74a0e3f5 (patch)
tree526431c1ebff690de47ebffaeb8e34e5c63c8880 /FICS/board.c
parentd9e554d06f76f6c930ecad37d5de0026ef2f0c7f (diff)
Moved defines
Diffstat (limited to 'FICS/board.c')
-rw-r--r--FICS/board.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/FICS/board.c b/FICS/board.c
index 1d468ba..39f770d 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -32,6 +32,12 @@
#include "playerdb.h"
#include "utils.h"
+#define WHITE_SQUARE 1
+#define BLACK_SQUARE 0
+#define ANY_SQUARE -1
+
+#define SquareColor(f, r) ((f ^ r) & 1)
+
extern int style1();
extern int style2();
extern int style3();
@@ -1112,11 +1118,6 @@ board_read_file(char *category, char *gname, game_state_t *gs)
return 0;
}
-#define WHITE_SQUARE 1
-#define BLACK_SQUARE 0
-#define ANY_SQUARE -1
-#define SquareColor(f, r) ((f ^ r) & 1)
-
PRIVATE void
place_piece(board_t b, int piece, int squareColor)
{