From 829031aa78f85ced458ab253cdae852e01c751f2 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 5 Jan 2014 16:07:30 +0100 Subject: [PATCH] Start rank counting at 1 for boards deeper than 10 Only exactly 10 ranks now starts counting at 1, to respect Xiangqi standard. --- common.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/common.h b/common.h index 7bfa4d7..9cb0cd9 100644 --- a/common.h +++ b/common.h @@ -142,7 +142,7 @@ typedef char *String; #define VIRGIN (BOARD_RANKS-2) /* [HGM] pieces not moved */ #define EP_STATUS CASTLING][(BOARD_FILES-2) /* [HGM] in upper rank */ #define HOLDINGS_SET CASTLING][(BOARD_FILES-1) /* [HGM] in upper-right corner*/ -#define ONE ('1'-(BOARD_HEIGHT>9)) /* [HGM] foremost board rank */ +#define ONE ('1'-(BOARD_HEIGHT==10)) /* [HGM] foremost board rank */ #define AAA ('a'-BOARD_LEFT) /* [HGM] leftmost board file */ #define VIRGIN_W 1 /* [HGM] flags in Board[VIRGIN][X] */ #define VIRGIN_B 2 -- 1.7.0.4