Unit testing quiescent search

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

gflohr
Posts: 57
Joined: Fri Jul 23, 2021 5:24 pm
Location: Elin Pelin
Full name: Guido Flohr

Unit testing quiescent search

Post by gflohr »

I have a quiescent search as described on http://web.archive.org/web/200708130426 ... escent.htm

I can exchange my evaluation function with a dumb implementation that just evaluates the material, so that the return value of Evaluate() is deterministic.

Are there any test positions for checking that the quiescence search behaves correctly?

My approach would be to find a position where the side on move can start a capture sequence with a positive static exchange evaluation d. The quiescence search should then return beta. Is that correct?

[Edited: It should return beta not beta + d.]