Function inanis::evaluation::mobility::evaluate
source · pub fn evaluate(
board: &Board,
white_aux: &mut EvalAux,
black_aux: &mut EvalAux
) -> PackedEval
Expand description
Evaluates mobility and part of the king safety on the board
and returns score from the white color perspective (more than 0 when advantage,
less than 0 when disadvantage). This evaluator does two things at once: first, counts all possible moves of knight, bishop, rook, queen
(pawns and king are too slow and not very important), and second, fills white_aux
and black_aux
with additional data used in other evaluators.