25,161
edits
Changes
no edit summary
=Sample Code=
Some processing power may be saved by testing if '''any''' move can improve over alpha. Then in truly hopeless nodes we don't do move generation and testing each move against the delta margin. The following code shows how this is done on the [[CPW-engineEngine]] (it represents a part of quiescence search responsible for handling a stand pat score):
<pre>
// get a "stand pat" score