Skip to content

Commit 85e924c

Browse files
committed
feat: merge PR aimacode#1303
1 parent 61d695b commit 85e924c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ def __init__(self, width=10, height=10):
480480
self.observers = []
481481
# Sets iteration start and end (no walls).
482482
self.x_start, self.y_start = (0, 0)
483-
self.x_end, self.y_end = (self.width, self.height)
483+
self.x_end, self.y_end = (self.width - 1, self.height - 1)
484484

485485
perceptible_distance = 1
486486

0 commit comments

Comments
 (0)