src/pieces.py
def can_move(self, ex: int, ey: int, pieces: List[Pieces]) -> bool:
        """Return true if can move otherwise false"""
        sx, sy = self.get_square()
        moves = self.get_all_rook_move(sx, sy, pieces)
        if moves is None:
            return False
        return (ex, ey) in moves
Return true if can move otherwise false
Return true if can move otherwise false
Return true if can move otherwise false
def can_move(self, ex: int, ey: int, pieces: List[Pieces]) -> bool:
        sx, sy = self.get_square()
        moves = self.get_all_rook_move(sx, sy, pieces)
        if moves is None:
            return False
        return (ex, ey) in moves
def can_move ( self , ex : int , ey : int , pieces : List [ Pieces ] ) -> bool : sx , sy = self . get_square ( ) moves = self . get_all_rook_move ( sx , sy , pieces ) if moves is None : return False return ( ex , ey ) in moves
Return true if can move otherwise false
Return true if can move otherwise false
"""Return true if can move otherwise false"""
self
ex
int
ey
int
pieces
List[Pieces]