Author: Harald Lüßen
Date: 08:37:23 09/11/04
Go up one level in this thread
On September 11, 2004 at 00:05:06, Rick Bischoff wrote: >You already count your legal moves through the loop-- that is how you >determine mates, right? No, not in my engine. I detect the mate after I tried all moves. When there was no legal move and I am in check I return the mate_score - ply. (Or draw score when not in check.) And I do not count or even generate all moves before I try the first one. Instead I start with the hash move, then generate, pre-sort and try good capture moves, then killers then normal moves and the rest. If there is a beta cut at the first legal move, how can I know that this was the only legal move? Should I really try to generate and legal-test all other moves in this case (until one other is found) to detect this situation and then do the beta cut move again, one ply extended? May be it will no longer cause a fail high then. This is why my single move extension is disabled. Harald
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.