From 054bc1c2d5fd5124a0d9454669c3603190fd77f8 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 8 Jan 2014 16:48:08 +0100 Subject: [PATCH] Adapt rank counting to new XBoard standard Since XBoard 4.8 (the first version that supports Chu Shogi) rank counting starts from 0 only for boards exactly 10 ranks deep. So Chu, Dai etc. all have to start counting at 1. --- hachu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hachu.c b/hachu.c index b3cd8c9..778182b 100644 --- a/hachu.c +++ b/hachu.c @@ -71,7 +71,7 @@ #define BSIZE BWMAX*BHMAX #define ZONE zone -#define ONE (currentVariant == V_SHO || currentVariant == V_CHESS || currentVariant == V_SHATRANJ || currentVariant == V_MAKRUK || currentVariant == V_LION) +#define ONE 1 /* currently no variants with 10-deep board */ #define BLACK 0 #define WHITE 1 -- 1.7.0.4