WALL = '#' SPACE = '.' PATH_LIMIT = 1000 def compass(x, y, offset=1): return [[x, y - offset], # North [x, y + offset], # South [x + offset, y], # East [x - offset, y]] # West