Author: Tom Kerrigan
Date: 08:14:54 09/22/98
Go up one level in this thread
It does generate pseudo-legal moves, but that's it. It doesn't check every move for legality. When you try to make a move with makemove(), it makes the move. Then it checks to see if the opponent's king is in check. If so, it takes the move back and returns false. So, you see, very few moves are tested for legality. -Tom On September 21, 1998 at 16:45:33, Guillem Barnolas wrote: >> >>>Yes, I know TSCP generates all the moves and then trims the illegal ones.. I >> >>In a manner of speaking. It only "trims" an illegal move when the program tries >>to search the illegal move. >> > >I'm sorry but I don't understand that.. I thought it generated pseudo-legal >moves and then discarded the ones that left the king in check... I suppose >you're right, cause you made the program... I'll look at it again >afterwards....thanks...
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.