Skip to content

DanielSchussmann/GameOfLifeSchussmann

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GameOfLifeSchussmann

Required Imports

import pygame
import numpy as np

Gerneral Functionality

Run the code, the input window appears.
Select all the cells to activated.
Close the window. 
The output window appears and runs the simmulation.

The application is run in 'custom mode' by calling the GameOfLife() class and then calling the input() method:

custom = GameOfLife()
custom.input()

The application is run in 'Example mode' by calling the GameOfLife() class and then calling the output() method while specifying a Starting Matrix:

custom = GameOfLife()
custom.output(Example_matrix)

Before calling input() or output() all the constructors can be changed:

Change the number of cells with:

self.n

Change the evolution speed with:

self.speed

Change the cell look(cell-width, cell-height, margin between cells) with:

self.width
self.height
self.margin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages