From 630c98a790ff04b8243020fa5479b252d7baed86 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Mon, 1 Nov 2010 22:16:58 +0100 Subject: [PATCH] Convert to DOS line ends --- fairymax.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fairymax.c b/fairymax.c index 82f9c60..2c16397 100644 --- a/fairymax.c +++ b/fairymax.c @@ -238,7 +238,7 @@ int k,q,l,e,E,z,n; /* (q,l)=window, e=current eval. score, E=e.p. sqr.*/ while(*p){X=*p>>8;Y=*p++; printf(" %c%c%c%c",'a'+(X&15),'8'-(X>>4),'a'+(Y&15),'8'-(Y>>4&7));} printf("\n");fflush(stdout); - } + } if(v>m) /* new best, update max,best*/ m=v,X=x,Y=y|S&F; /* mark non-double with S */ if(h){h=0;goto A;} /* redo after doing old best*/ @@ -798,12 +798,12 @@ int main(int argc, char **argv) break; default: b[m]=p+color+32; // assume non-virgin - if(w[p]<0) { // Royal piece on original square: virgin + if(w[p]<0) { // Royal piece on original square: virgin if(color==BLACK && m<0x10 && p==oo[m+16] || - color==WHITE && m>0x6F && p==oo[m-0x70]) b[m] -= 32; - Q-=w[p]; // assume value was flipped to indicate royalty - if(pl[p+color])R-=w[p]/FAC; // capturable King, add to material - } else { Q+=w[p]; R+=w[p]/FAC; } + color==WHITE && m>0x6F && p==oo[m-0x70]) b[m] -= 32; + Q-=w[p]; // assume value was flipped to indicate royalty + if(pl[p+color])R-=w[p]/FAC; // capturable King, add to material + } else { Q+=w[p]; R+=w[p]/FAC; } if((m==0x00 || m==BW-1 ) && color==BLACK && p==oo[m+16] || (m==0x70 || m==0x6F+BW) && color==WHITE && p==oo[m-0x70]) b[m] &= ~32; // corner piece as in original setup: virgin -- 1.7.0.4