pub fn in_check(&self, c: Color) -> bool {
        if let Some(king_sq) = self.find_king(c) {
            self.is_attacked_by(king_sq, c.flip())
        } else {
            false
        }
    }
/// Checks if the king with the given color is in check.
Checks if the king with the given color is in check.
Checks if the king with the given color is in check .
pub fn in_check(&self, c: Color) -> bool {
        if let Some(king_sq) = self.find_king(c) {
            self.is_attacked_by(king_sq, c.flip())
        } else {
            false
        }
    }
pub fn in_check ( & self , c : Color ) -> bool { if let Some ( king_sq ) = self . find_king ( c ) { self . is_attacked_by ( king_sq , c . flip ( ) ) } else { false } }
Checks if the king with the given color is in check.
Checks if the king with the given color is in check .
&self
c
Color