X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=fairymax.c;h=b939cfc66beef2689e2b8701dc5d0d27026c8115;hb=f0f6ce9c3442aba3131f19ce70075df051262e5a;hp=4db818ebca07fad12bfb3bf88009f6b937689d58;hpb=fe7f9a6e90036f2d656a1d3cc4ef197748ef2d75;p=fairymax.git diff --git a/fairymax.c b/fairymax.c index 4db818e..b939cfc 100644 --- a/fairymax.c +++ b/fairymax.c @@ -331,13 +331,6 @@ int PrintResult(int s) printf("1-0 {Bare King}\n"); return 5; } - if(cnt>-I+1 && K==0 && L==0) { - if (s == WHITE) - printf("0-1 {Stalemate}\n"); - else - printf("1-0 {Stalemate}\n"); - return 2; - } #else if(cnt>-I+1 && K==0 && L==0) { printf("1/2-1/2 {Stalemate}\n"); @@ -623,12 +616,14 @@ int main(int argc, char **argv) } if (!strcmp(command, "white")) { /* set white to move in current position */ + if(Side == BLACK) Q = -Q; Side = WHITE; Computer = BLACK; continue; } if (!strcmp(command, "black")) { /* set blck to move in current position */ + if(Side == WHITE) Q = -Q; Side = BLACK; Computer = WHITE; continue;