pub fn evaluate(board: &Board) -> PackedEval
Expand description

Evaluates material on the board and returns score from the white color perspective (more than 0 when advantage, less than 0 when disadvantage). The piece values themself are included in PST so it’s no longer evaluated here, instead other features like bishop pair are processed.