Computer Chess Club Archives


Search

Terms

Messages

Subject: How can I escape from check in Qsearch?

Author: Kevin K

Date: 10:51:35 05/03/05


    quiesce(int alpha, int beta) {
        int score = eval();
        if (score >= beta) return score;
        for (each capturing move m) {
            make move m;
            score = -quiesce(-beta,-alpha);
            unmake move m;
            if (score >= alpha) {
                alpha = score;
                if (score >= beta) break;
            }
        }
        return score;
    }
I found this from http://www.ics.uci.edu/~eppstein/180a/990204.html
But there is no code which takes care of escaping from check.
Where do I have to put code which handles escaping from check in Qsearch?



This page took 0.01 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.