Author: Tord Romstad
Date: 00:04:14 12/01/03
Go up one level in this thread
On November 30, 2003 at 19:43:00, Sune Fischer wrote: >No pun intended, but what is it that is so clever about legal move generation? I am not sure it is very clever, but I find it convenient enough that I want to keep it. My search(), make_move() and unmake_move() functions look a bit cleaner when I always know the precise number of legal moves and I am sure that the capture of a king never happens. It is also nice to easily detect stalemate. As I said, not very important, but convenient. You are right that it might be expensive, though. My solution to this problem is to make the rest of my program so slow that I don't notice the difference. :-) Tord
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.