Author: Thomas Mayer
Date: 13:02:06 09/29/03
Go up one level in this thread
Hi Ed, > 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... Greets, Thomas
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.