From ab1670dfdad32913227e10ca67ef086e74a0e3f5 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Dec 2023 22:58:16 +0100 Subject: Moved defines --- FICS/board.c | 11 ++++++----- 1 file 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) { -- cgit v1.2.3