/// Mate with KX vs K. This function is used to evaluate positions with
/// king and plenty of material vs a lone king. It simply gives the
/// attacking side a bonus for driving the defending king towards the edge
/// Mate with KX vs K. This function is used to evaluate positions with
/// king and plenty of material vs a lone king. It simply gives the
/// attacking side a bonus for driving the defending king towards the edge
result = RookValueEg - distance(wksq, psq);
// If the weaker side's king is too far from the pawn and the rook,
result = RookValueEg - distance(wksq, psq);
// If the weaker side's king is too far from the pawn and the rook,