mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Fix trace in case of space evaluation
We only compute space eval during the opening/early midgame. Apply the same logic for DoTrace. No functional change.
This commit is contained in:
parent
ec83e8a72c
commit
8f30d233f8
1 changed files with 3 additions and 2 deletions
|
@ -888,8 +888,9 @@ Value Eval::evaluate(const Position& pos) {
|
|||
Trace::add(IMBALANCE, ei.me->imbalance());
|
||||
Trace::add(PAWN, ei.pi->pawns_score());
|
||||
Trace::add(MOBILITY, mobility[WHITE], mobility[BLACK]);
|
||||
Trace::add(SPACE, evaluate_space<WHITE>(pos, ei)
|
||||
, evaluate_space<BLACK>(pos, ei));
|
||||
if (pos.non_pawn_material(WHITE) + pos.non_pawn_material(BLACK) >= 12222)
|
||||
Trace::add(SPACE, evaluate_space<WHITE>(pos, ei)
|
||||
, evaluate_space<BLACK>(pos, ei));
|
||||
Trace::add(TOTAL, score);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue