Author: Guido
Date: 01:57:20 11/09/01
Go up one level in this thread
On November 08, 2001 at 17:58:14, Robert Hyatt wrote: <snip> > > >How do they avoid it? By not probing if castling is legal? That is a >solution that is easy to add. But the tiny cost is absolutely wasted as >no 5 piece position with castling still possible will ever occur in any >real game... I agree with you that castling is so rare in an ending that it is useless to keep castling into account in EGTBs. Moreover I thought a lot about the problem but I didn't find any practical possibility to solve it. This depends on the fact that generation of EGTBs considers each position statically without memory of previous or existent rights (castling and ep). Also IMHO the best thing to do for castling is to avoid using EGTBs when castling rights are active. For ep the situation is similar, but, first of all, it is not uncommon in an ending, and secondly it is possible to solve the problem in this way: - Generate the EGTBs without ep right. - When the chess program sends a request to the function that interrogate EGTBs, it transmits also an ep flag set to the number of the cell where ep capture can happen (0 otherwise). - This function calculates the result without ep, then executes the ep move (or 2 moves), evaluates the position and inverts the result, and sends back the best result. IMHO this procedure is not theoretically exact and could fail when many pawns are present, but in practice it works fine because EGTBs cannot have at present more than 3 pawns (kppkp), and the ep right, unlike castling, disappears after the execution of the current move. How do Nalimov's EGTBs solve this problem? Guido
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.