diff --git a/agents.py b/agents.py index d29b0c382..d74522290 100644 --- a/agents.py +++ b/agents.py @@ -480,7 +480,7 @@ def __init__(self, width=10, height=10): self.observers = [] # Sets iteration start and end (no walls). self.x_start, self.y_start = (0, 0) - self.x_end, self.y_end = (self.width, self.height) + self.x_end, self.y_end = (self.width - 1, self.height - 1) perceptible_distance = 1