We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0543569 commit 120456aCopy full SHA for 120456a
mesa/examples/advanced/wolf_sheep/model.py
@@ -99,8 +99,8 @@ def __init__(
99
cliff_arr = [[False] * self.width for i in range(self.height)]
100
101
cliff_coord = {
102
- (random.randrange(self.height), random.randrange(self.width))
103
- for i in range((width * height) // 3)
+ (random.randrange(self.height), random.randrange(self.width))
+ for i in range((width * height) // 3)
104
} # set is used because the random number gen might return the same coordinate
105
for i, j in cliff_coord:
106
cliff_arr[i][j] = True
0 commit comments