X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=80a210d52efc9252771127241858ef49308f2045;hb=b12e1192005c781f64ed9c25c9825d20384d2468;hp=f9d5bdc313e678e81a68969589aeb65bdc1de503;hpb=521e08ee53bfc842ae70085867a1bd997ff6ba0f;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index f9d5bdc..80a210d 100644 --- a/fairymax.c +++ b/fairymax.c @@ -18,7 +18,7 @@ /*****************************************************************/ #define MULTIPATH -#define VERSION "4.8U" +#define VERSION "4.8V" #include #include @@ -543,7 +543,7 @@ void LoadGame(char *name) } while(fscanf(f, " # %[^\n]", pieceToChar)) printf("piece %s\n", pieceToChar); fclose(f); - if(makruk != 64) makruk = 0; // 66 was kludge to interpret "=1" suffix in asean for setting up 3rd-rank Pawns + if(makruk == 66) makruk = 8; // 66 was kludge to interpret "=1" suffix in asean for setting up 3rd-rank Pawns } int main(int argc, char **argv) @@ -589,8 +589,8 @@ int main(int argc, char **argv) if(tlim>TimeLeft/15) tlim = TimeLeft/15; PromPiece = 0; /* Always promote to Queen ourselves */ for(N=K=0;K>8<2)centr[4]=5;if(!(N&S-2))centr[3]=5;Z+=R>4;R=4;} -printf("# %d+%d pieces, centr = (%d,%d)\n", N&63, N>>7, centr[3], centr[4]); + if(w[3]<0&w[4]<0){if(N<2*S)centr[4]=5,Z+=R>4,R=4;if(!(N&S-2))centr[3]=5,Z+=R>4,R=4;} +printf("# %d+%d pieces, centr = (%d,%d) R=%d\n", N&63, N>>7, centr[3], centr[4], R); N=0;K=I; if(hill) centr[3] = R>20 ? 1 : 22-R; if (D(Side,-I,I,Q,O,LL|S,3)==I) {