(pt, grid)
return grid[pt] is None
Checks if the cell at coordinates ``pt`` is either empty or
        out of the bounds of the grid.
Checks if the cell at coordinates ``pt`` is either empty or
        out of the bounds of the grid.
Checks if the cell at coordinates pt is either empty or out of the bounds of the grid .
def _empty_point(pt, grid):
        """
        Checks if the cell at coordinates ``pt`` is either empty or
        out of the bounds of the grid.
        """
        if (pt[0] < 0) or (pt[1] < 0) or \
           (pt[0] >= grid.height) or (pt[1] >= grid.width):
            return True
        return grid[pt] is None
def _empty_point ( pt , grid ) : if ( pt [ 0 ] < 0 ) or ( pt [ 1 ] < 0 ) or ( pt [ 0 ] >= grid . height ) or ( pt [ 1 ] >= grid . width ) : return True return grid [ pt ] is None