X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fevaluate.cpp;h=873dc5d20693956bea19b72f07acc764a2c14008;hb=7bd23d4d04d6644b6ccae8ea63cfc6646e4248dd;hp=703cf869cee1caa02bfa8b48369d2a16b4829c53;hpb=a2737d8bb5e480563823820fb12a8887d61c991e;p=stockfish diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 703cf869..873dc5d2 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1048,6 +1048,8 @@ make_v: Value Eval::evaluate(const Position& pos, int* complexity) { + assert(!pos.checkers()); + Value v; Value psq = pos.psq_eg_stm(); @@ -1061,7 +1063,7 @@ Value Eval::evaluate(const Position& pos, int* complexity) { else { int nnueComplexity; - int scale = 1001 + 5 * pos.count() + 61 * pos.non_pawn_material() / 4096; + int scale = 1001 + pos.non_pawn_material() / 64; Color stm = pos.side_to_move(); Value optimism = pos.this_thread()->optimism[stm];