(self)
return self.is_attacked_by(self.turn, self.king_squares[self.turn ^ 1])
Checks if the king of the other side is attacked. Such a position is not
        valid and could only be reached by an illegal move.
Checks if the king of the other side is attacked. Such a position is not
        valid and could only be reached by an illegal move.
Checks if the king of the other side is attacked . Such a position is not valid and could only be reached by an illegal move .
def was_into_check(self):
        """
        Checks if the king of the other side is attacked. Such a position is not
        valid and could only be reached by an illegal move.
        """
        return self.is_attacked_by(self.turn, self.king_squares[self.turn ^ 1])
def was_into_check ( self ) : return self . is_attacked_by ( self . turn , self . king_squares [ self . turn ^ 1 ] )