- First package (version 5.0b) OBS-URL: https://build.opensuse.org/request/show/519164 OBS-URL: https://build.opensuse.org/package/show/games/fairymax?expand=0&rev=1
29 lines
707 B
Diff
29 lines
707 B
Diff
Index: fairymax-5.0b/maxqi.c
|
|
===================================================================
|
|
--- fairymax-5.0b.orig/maxqi.c
|
|
+++ fairymax-5.0b/maxqi.c
|
|
@@ -176,6 +176,7 @@ char zn[] = {
|
|
pboard()
|
|
{int i;
|
|
i=-1;W(++i<144)printf(" %c",(i&15)==BW&&(i+=15-BW)?10:n[b[i]&31]);
|
|
+ return NULL;
|
|
}
|
|
|
|
D(k,q,l,e,z,n) /* recursive minimax search, k=moving side, n=depth*/
|
|
@@ -351,6 +352,7 @@ InitEngine()
|
|
|
|
N=8100;W(N-->256)T[N]=rand()>>9;
|
|
srand(GetTickCount());
|
|
+ return NULL;
|
|
}
|
|
|
|
InitGame()
|
|
@@ -367,6 +369,7 @@ InitGame()
|
|
Fifty = 0; R = 0;
|
|
for(i=0; i<BW; i++) if(i!=3) R += (w[oo[i]]/FAC) + (w[oo[i+16]]/FAC);
|
|
UnderProm = -1;
|
|
+ return NULL;
|
|
}
|
|
|
|
void CopyBoard(int s)
|