Author: Alessandro Damiani
Date: 05:12:04 08/07/04
Go up one level in this thread
>>A possible implementation of the function winLimit() looks as follows >> >>int winLimit(int posValue, Move m) >>{ >> int winLimit; >> >> winLimit= posValue + SEE(m) + POSITIONAL_MARGIN; >> >> if (isPromotion(m) { >> winLimit+= val(promotionPiece(m)) - val(PAWN); >> }; > > > I'm not sure I understand here. Don't you apply promoted piece in SEE()? If >so, you shouldn't prune at all captures with SEE() < 0, but you need to apply >this "if" also. > I simply add the score of the promoted piece (- 1 pawn) when I calculate SEE, >just in case it's not recaptured. > > José C. > > > >> return winLimit; >>} My SEE does not handle promotions. So, you are right, I should have mentioned the dependency on the implementation of the SEE. To be clear: the code I wrote here is just a starting point, it is not what I implemented in my engine. Alessandro
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.