Computer Chess Club Archives


Search

Terms

Messages

Subject: QSearch question

Author: Patrik

Date: 14:53:00 02/22/03


int Quies(int alpha, int beta)
{
    val = Evaluate();
    if (val >= beta)
        return beta; 	<=== I don't understand this line.
    if (val > alpha)
        alpha = val;
    GenerateGoodCaptures();
    while (CapturesLeft()) {
        MakeNextCapture();
        val = -Quies(-beta, -alpha);
        UnmakeMove();
        if (val >= beta)
            return beta;
        if (val > alpha)
            alpha = val;
    }
    return alpha;
}

This is QSearch from Mr. Moreland's site.
Can I return when val >= beta if I generate all capture moves
instead of generating only good capture moves?



This page took 0 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.