Skip to content
Snippets Groups Projects
Commit 089c5e23 authored by Gottfried's avatar Gottfried
Browse files

bugfix removed iterations

parent b91adb9e
No related branches found
No related tags found
1 merge request!1Version 0.2 (4.11.)
...@@ -49,7 +49,6 @@ class GameOfLife: ...@@ -49,7 +49,6 @@ class GameOfLife:
def next(self,board): def next(self,board):
s = board.shape s = board.shape
new_board = np.zeros_like(board) #Your comment was right after all... new_board = np.zeros_like(board) #Your comment was right after all...
for iterations in range(1000):
for i in range(s[0]): for i in range(s[0]):
for j in range(s[1]): for j in range(s[1]):
new_board[i,j] = neighbourhood(i,j,board) new_board[i,j] = neighbourhood(i,j,board)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment