Distance mate pruning conflicts with EGTBs

Discussion of chess software programming and technical issues.

Moderator: Ras

Cardoso
Posts: 363
Joined: Thu Mar 16, 2006 7:39 pm
Location: Portugal
Full name: Alvaro Cardoso

Distance mate pruning conflicts with EGTBs

Post by Cardoso »

Hi everyone,
I have distance mate pruning, but if I use EGTBs my engine gives away material and looses immediately.
Does anyone solved this problem?

thanks in advance,
Alvaro

Code: Select all

        alpha = Max(alpha, -MATE + ply);
        beta = Min(beta, MATE - ply - 1);
        if (alpha >= beta)
            return(alpha);
zamar
Posts: 613
Joined: Sun Jan 18, 2009 7:03 am

Re: Distance mate pruning conflicts with EGTBs

Post by zamar »

Cardoso wrote:Hi everyone,
I have distance mate pruning, but if I use EGTBs my engine gives away material and looses immediately.
Sounds like there is a problem with your EGTB probing implementation... Mate distance pruning should work just fine EGTBs.
Joona Kiiski