chess:programming:search:quiescence_search
This is an old revision of the document!
Chess - Programming - Search - Quiescence Search
int Quiesce( int alpha, int beta ) { int stand_pat = Evaluate(); if( stand_pat >= beta ) return beta; if( alpha < stand_pat ) alpha = stand_pat; until( every_capture_has_been_examined ) { MakeCapture(); score = -Quiesce( -beta, -alpha ); TakeBackMove(); if( score >= beta ) return beta; if( score > alpha ) alpha = score; } return alpha; }
chess/programming/search/quiescence_search.1633992550.txt.gz · Last modified: 2021/10/11 22:49 by peter