engine.py
def legal_moves_no_castlings(self):
        """Return a list of Move-objects corresponding to all possible legal moves
        in this position, except for castlings and promotion to other pieces than
        queens."""
        move_list = []
        moves = self.pseudo_legal_moves_no_castlings()
        for move in moves:
            self.make_move(move)
            if abs(minimax(self, 1)) < 500:
                move_list.append(move)
            self.undo_move(move)
        return move_list
Return a list of Move-objects corresponding to all possible legal moves
        in this position, except for castlings and promotion to other pieces than
        queens.
Return a list of Move-objects corresponding to all possible legal moves
in this position, except for castlings and promotion to other pieces than
queens.
Return a list of Move - objects corresponding to all possible legal moves in this position except for castlings and promotion to other pieces than queens .
def legal_moves_no_castlings(self):
        move_list = []
        moves = self.pseudo_legal_moves_no_castlings()
        for move in moves:
            self.make_move(move)
            if abs(minimax(self, 1)) < 500:
                move_list.append(move)
            self.undo_move(move)
        return move_list
def legal_moves_no_castlings ( self ) : move_list = [ ] moves = self . pseudo_legal_moves_no_castlings ( ) for move in moves : self . make_move ( move ) if abs ( minimax ( self , 1 ) ) < 500 : move_list . append ( move ) self . undo_move ( move ) return move_list
Return a list of Move-objects corresponding to all possible legal moves
in this position, except for castlings and promotion to other pieces than
queens.
Return a list of Move - objects corresponding to all possible legal moves in this position except for castlings and promotion to other pieces than queens .
"""Return a list of Move-objects corresponding to all possible legal moves
        in this position, except for castlings and promotion to other pieces than
        queens."""
self