Function inanis::evaluation::safety::evaluate
source · pub fn evaluate(
board: &Board,
white_aux: &EvalAux,
black_aux: &EvalAux
) -> PackedEvalExpand description
Evaluates king safety on the board and returns score from the white color perspective (more than 0 when advantage,
less than 0 when disadvantage). Both additional parameters, white_aux and black_aux, are
calculated during mobility evaluation and are used here to get the final score.