Skip to content
Snippets Groups Projects
Commit d25f48ac authored by Jakob Kirsch's avatar Jakob Kirsch
Browse files

auto generated by makefile

parent e8f65041
No related branches found
No related tags found
No related merge requests found
Usage:
Height: height of window
Width: width of window
Code: code for pattern. To exit, make an empty line Example: "return random.randint(0, 1)". Can be longer than one line
Code: code for pattern. To exit, make an empty line Example: "return random.randint(0, 1)". Can be longer than one line. Return 1 -> alive
Delay: delay between frames
\ No newline at end of file
......@@ -64,7 +64,7 @@ def check(map, x, y):
def seed(map):
for y in range(0, len(map)):
for x in range(0, len(map[0])):
map[y][x] = [LIFE, DEATH][pattern(x, y)]
map[y][x] = [DEATH, LIFE][pattern(x, y)]
#MAIN
seed(MAP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment