Skip to content

Commit

Permalink
added city_clone() in function run_schelling
Browse files Browse the repository at this point in the history
  • Loading branch information
luisesanmartin authored Aug 24, 2022
1 parent 04d1e8e commit 8248dd7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def run_schelling(grid, threshold, max_rounds):

moved = True
rounds = 0 # rpunds counter
city_clone = [row[:] for row in grid]
city_clone = clone_grid(grid)

while moved == True and rounds < max_rounds:

Expand Down

0 comments on commit 8248dd7

Please sign in to comment.