diff --git a/paperio/local_runner/helpers.py b/paperio/local_runner/helpers.py index ad3008b..5c4a411 100644 --- a/paperio/local_runner/helpers.py +++ b/paperio/local_runner/helpers.py @@ -197,4 +197,4 @@ def get_random_coordinates(): def is_intersect(p1, p2, width=WIDTH): x1, y1 = p1 x2, y2 = p2 - return abs(x1 - x2) < width and abs(y1 - y2) < width + return abs(x1 - x2) + abs(y1 - y2) < width