diff --git a/src/conway/gameoflife.py b/src/conway/gameoflife.py index 65db2fd..a2186de 100644 --- a/src/conway/gameoflife.py +++ b/src/conway/gameoflife.py @@ -96,7 +96,7 @@ def get_anime(size=100, steps=100, start="random"): anime = PlotlyAnimation(state, steps) return anime.animation -def get_starting_board(size, start=random): +def get_starting_board(size, start="random"): # TODO: implement other starting options like e.g. glider if start == "random": return State(size, size, "random") @@ -108,12 +108,7 @@ def get(size = 100, start="random"): return PlotlyAnimation(board, size).animation def main(): - # state = State(20, 20, [(0, 1), (1, 2), (2, 0), (2, 1), (2, 2)]) - state = State(100, 100, "random") - # animation = PltAnimation(state) - # ani = animation.animate() - # plt.show() animation = PlotlyAnimation(state, 100) animation.show()