Skip to content

Bug in Search.cpp #8

Description

@JimViebke

Unless I'm misreading, the final condition abs(beta - 1) > -INF + 100 is always true:

cpw-engine/search.cpp

Lines 280 to 290 in 2e3cf29

if (depth < 3
&& !is_pv
&& !flagInCheck
&& abs(beta - 1) > -INF + 100)
{
int static_eval = eval(alpha, beta, 1);
int eval_margin = 120 * depth;
if (static_eval - eval_margin >= beta)
return static_eval - eval_margin;
}

With:

#define INF 10000

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions