Function inanis::evaluation::safety::evaluate
source · pub fn evaluate(
board: &Board,
dangered_white_king_squares: u32,
dangered_black_king_squares: u32
) -> EvaluationResult
Expand 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, dangered_white_king_squares
and dangered_black_king_squares
, are
calculated during mobility evaluation and are used here to get the final score.