\r
// Thai Chess. Note: value m = 181 controls promotion at 6th!\r
Game: makruk\r
-8x8\r
+8x8=3\r
12 11 8 7 3 8 11 12\r
12 11 9 3 7 9 11 12\r
p:100 -16,6 -15,5 -17,5 \r
\r
// Cambodian Chess. Like Makruk, but with extra initial King and Met moves\r
Game: cambodian\r
-8x8\r
+8x8=3\r
13 12 8 3 7 8 12 13\r
13 12 9 7 4 9 12 13\r
p:100 -16,6 -15,5 -17,5 \r
/* We have found variant, or if none specified, are at beginning of file */\r
if(fscanf(f, "%dx%d", &BW, &BH)!=2 || BW>12 || BH!=8)\r
{ printf("telluser unsupported board size %dx%d\n",BW,BH); exit(0); }\r
+ makruk = 0; if(fscanf(f, "=%d", &i)) makruk=64; // new method to indicate deviant zone depth (for now assumes 3)\r
\r
for(i=0; i<BW; i++) fscanf(f, "%d", oo+i);\r
for(i=0; i<BW; i++) fscanf(f, "%d", oo+i+16);\r
\r
fclose(f);\r
sh = w[7] < 250 ? 3 : 0;\r
- makruk = w[7]==181 ? 64 : 0; // w[7] is used as kludge to enable makruk promotions\r
if(name == selectedFairy) {\r
printf(ptc == 1 ? "setup " : "setup (%s) ", pieceToChar); // setup board in GUI\r
for(i=0; i<BW; i++) printf("%c", piecename[oo[i+16]]+'`'); printf("/");\r