Skip to content

Commit 120456a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0543569 commit 120456a

File tree

1 file changed

+2
-2
lines changed
  • mesa/examples/advanced/wolf_sheep

1 file changed

+2
-2
lines changed

mesa/examples/advanced/wolf_sheep/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def __init__(
9999
cliff_arr = [[False] * self.width for i in range(self.height)]
100100

101101
cliff_coord = {
102-
(random.randrange(self.height), random.randrange(self.width))
103-
for i in range((width * height) // 3)
102+
(random.randrange(self.height), random.randrange(self.width))
103+
for i in range((width * height) // 3)
104104
} # set is used because the random number gen might return the same coordinate
105105
for i, j in cliff_coord:
106106
cliff_arr[i][j] = True

0 commit comments

Comments
 (0)