Module inanis::evaluation::safety
source · Functions
- 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
anddangered_black_king_squares
, are calculated during mobility evaluation and are used here to get the final score. - Evaluates pawn structure on the
board
for the specifiedcolor
and withdangered_king_squares
count.