From: H.G.Muller Date: Sun, 12 Oct 2014 09:46:28 +0000 (+0200) Subject: Fix ASEAN Chess X-Git-Url: http://winboard.nl/cgi-bin?p=fairymax.git;a=commitdiff_plain;h=1d45b3d1a17fe04d338478c287b31a9306e0949b Fix ASEAN Chess Variant asean did not put the Pawns on 3rd rank since the "=3" suffix was used to indicate Makruk, as ASEAN has a normal 1-rank promotion zone. By adding "=1" as a kludge, and later resetting the 'makruk' variable that controls the zone width, it now sets up the correct position. --- diff --git a/data/fmax.ini b/data/fmax.ini index 57b05bb..0d3bf72 100644 --- a/data/fmax.ini +++ b/data/fmax.ini @@ -329,7 +329,7 @@ f:180 15,7 17,7 -15,7 -17,7 // ASEAN Chess. New form of Makruk Game: asean -8x8 +8x8=1 13 12 8 7 3 8 12 13 13 12 9 7 4 9 12 13 p:100 -16,6 -15,5 -17,5 diff --git a/fairymax.c b/fairymax.c index 418c926..007e542 100644 --- a/fairymax.c +++ b/fairymax.c @@ -503,7 +503,7 @@ void LoadGame(char *name) /* We have found variant, or if none specified, are at beginning of file */ if(fscanf(f, "%dx%d", &BW, &BH)!=2 || BW>12 || BH!=8) { printf("telluser unsupported board size %dx%d\n",BW,BH); exit(0); } - makruk = 0; if(fscanf(f, "=%d", &i)) makruk=64; // new method to indicate deviant zone depth (for now assumes 3) + makruk = 0; if(fscanf(f, "=%d", &i)) makruk=67-i; // new method to indicate deviant zone depth (for now assumes 3) for(i=0; i