Unit testing quiescent search

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
gflohr
Posts: 26
Joined: Fri Jul 23, 2021 3:24 pm
Location: Elin Pelin
Full name: Guido Flohr
Contact:

Unit testing quiescent search

Post by gflohr » Tue Jul 27, 2021 6:20 am

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.]

Post Reply