Author: Dieter Buerssner
Date: 06:05:17 02/11/06
Go up one level in this thread
On February 10, 2006 at 07:46:04, h.g.muller wrote: >if(bestscore == -1) > bestscore = -negamax(24-color, 0)/2; > >should have been > >if(bestscore == -2) > bestscore = -negamax(24-color, 0)/2; Does not seem to work for me. C:\DOKUME~1\Dieter\EIGENE~1>gcc -Wall hgm.c hgm.c: In function `negamax': hgm.c:23: warning: suggest parentheses around assignment used as truth value hgm.c:43:28: warning: "/*" within comment hgm.c: In function `main': hgm.c:73: warning: implicit declaration of function `getchar' hgm.c:85: warning: implicit declaration of function `printf' hgm.c:85: warning: implicit declaration of function `exit' hgm.c:68: warning: unused variable `buf' hgm.c:102: warning: control reaches end of non-void function C:\DOKUME~1\Dieter\EIGENE~1>type m1.txt ....R..B ...Bb... r....q.p ....k... ..K.N..N .....Pr. ...Q.... .b..R... C:\DOKUME~1\Dieter\EIGENE~1>a < m1.txt mate in 2 by e1e2 C:\DOKUME~1\Dieter\EIGENE~1>type m2.txt .......k .....P.. .......K ........ ........ ........ ........ ........ C:\DOKUME~1\Dieter\EIGENE~1>a < m2.txt no mate found Regards, Dieter
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.