X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=36bda212e331121ec60e9d0823e4bf6e18c22749;hb=23a74b05a73ae1a54a57c60522469e6c9b74adc0;hp=0c1fc8110d5d522a0c5b655ec772d97448b32e5f;hpb=7d5a541a003b3077daf866fea158e73cb110bfc3;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index 0c1fc81..36bda21 100644 --- a/fairymax.c +++ b/fairymax.c @@ -18,7 +18,7 @@ /*****************************************************************/ #define MULTIPATH -#define VERSION "4.8O" +#define VERSION "4.8P" #include #include @@ -373,6 +373,8 @@ InitGame() K=BW;W(K--) {b[K]=oo[K+16]+16;b[K+112]=oo[K];b[K+16]=18;b[K+96]=1; /* initial board setup*/ pl[oo[K+16]+16]++;pl[oo[K]]++;pl[18]++;pl[1]++; + if(w[oo[K+16]+16] == -1)pl[oo[K+16]+16]=1; + if(w[oo[K]] == -1)pl[oo[K]]=1; L=8;W(L--)b[16*L+K+257]=(K-BW/2)*(K-BW/2)+(L-3.5)*(L-3.5); /* center-pts table */ } /*(in unused half b[])*/ Side = WHITE; Q=0; O=S; @@ -813,6 +815,7 @@ int main(int argc, char **argv) break; } pl[BLACK+WHITE-color]++;pl[p+color]++; + if(w[p+color] == -1)pl[p+color]=1; // fake we have one if value = -1, to thwart extinction condition continue; } }