Page 1 of 1

SEE and promoting attacks

Posted: Sat Aug 27, 2016 7:04 pm
by sandermvdb
I am trying to add sorting in the quiescence search by using the SEE score. I was wondering if I should raise the score when the particular move is an attacking promotion move. This seems logic to me but my search returns more nodes when I enable this. I also did not find any code or explanation where this is actually used.

Re: SEE and promoting attacks

Posted: Sun Aug 28, 2016 1:48 am
by hyatt
The correct way is to simply update material according to what happens. IE Pxe8=Q should add +9 for queen -1 for losing the pawn that promoted, plus whatever is captures. If the opponent then captures, he subtracts 9, which leaves the SEE score at -1 for losing the pawn.