Module inanis::evaluation::material
source · Functions
- Evaluates material on the
board
and returns score from the white color perspective (more than 0 when advantage, less than 0 when disadvantage). This simple evaluator sums all scores of all present pieces using incremental counters inboard
, without considering the current game phase. - Recalculates incremental counters on the
board
. This function should be called only once during board initialization, as it’s too slow in regular search.