Author: Edward Seid
Date: 13:56:39 09/29/03
Go up one level in this thread
On September 29, 2003 at 16:02:06, Thomas Mayer wrote: >> If width = 0 Then >> Return Evaluate() >> End If > >this might be already not correct - I don't know where you check for checkmate, >but this could be a good point (also for stalemate in that respect. E.g. like: > >if width=0 then > if InCheck return -mate else return 0 >end if > >why this ? If I have understood you correctly, width is 0 when their is no legal >move... so definitely you have some kind of result here, either checkmate or >stalemate. > >With the corrections made by GCP the rest looks fine to me... Yes, width=0 indicates that there are no legal moves. In my program, the detection of checkmate/stalemate is done in the Evaluate() routine.
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.