mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update cellular_automata/game_of_life.py
This commit is contained in:
parent
a8ff2cbb6e
commit
afe53a9564
@ -60,7 +60,7 @@ def run(canvas):
|
|||||||
|
|
||||||
@returns:
|
@returns:
|
||||||
--
|
--
|
||||||
List
|
canvas of population after one step
|
||||||
"""
|
"""
|
||||||
canvas = np.array(canvas)
|
canvas = np.array(canvas)
|
||||||
next_gen_canvas = np.array(create_canvas(canvas.shape[0]))
|
next_gen_canvas = np.array(create_canvas(canvas.shape[0]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user