aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/board.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/FICS/board.h b/FICS/board.h
index 37fb810..80b14a5 100644
--- a/FICS/board.h
+++ b/FICS/board.h
@@ -59,12 +59,13 @@
#define B_QUEEN (QUEEN | BLACK)
#define B_KING (KING | BLACK)
-#define isblack(p) ((p) & BLACK)
-#define iswhite(p) (!isblack(p))
-#define iscolor(p,color) (((p) & BLACK) == (color))
-#define piecetype(p) ((p) & 0x7f)
-#define colorval(p) ((p) & 0x80)
-#define square_color(r,f) ((((r)+(f)) & 0x01) ? BLACK : WHITE)
+#define isblack(p) ((p) & BLACK)
+#define iswhite(p) (!isblack(p))
+#define iscolor(p, color) (((p) & BLACK) == (color))
+
+#define colorval(p) ((p) & 0x80)
+#define piecetype(p) ((p) & 0x7f)
+#define square_color(r, f) ((((r) + (f)) & 0x01) ? BLACK : WHITE)
extern int pieceValues[7];