cleanup for django

master
Tom Weber 2 years ago
parent 728f67de93
commit affb0a3a27

@ -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()

Loading…
Cancel
Save