Skip to content

Implementation of Conways Game of Life providing the moore and neumann neighborhood option. For more info visit:

Notifications You must be signed in to change notification settings

Logogistiks/GameOfLife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

This is my python implementation of CGOL. The Gameboard can be any size as long as it's square. You can load different initial configurations by editing the board variable in the main function.

Edit this variable


⚠️ After starting the program, press Enter to start ⚠️



Requirements

You will need to download these libraries:

colorama keyboard

Patterns

I implemented a few well-known initial patterns which are stored in the initials.py file. By the time of writing this, the following patterns are added:

1. Blinker

Type: Oscillator
Period: 2

board = blinker()

blinker


2. Toad

Type: Oscillator
Period: 2

board = toad()

blinker


3. Beacon

Type: Oscillator
Period: 2

board = beacon()

blinker


4. Pulsar

Type: Oscillator
Period: 3

board = pulsar()

blinker


5. Pentadecathlon

Type: Oscillator
Period: 15

board = pentadecathlon()

blinker


6. glider

Type: Spaceship

board = glider()

blinker


7. Light-weight Spaceship

Type: Spaceship

board = LWSS()

blinker


8. Medium-weight Spaceship

Type: Spaceship

board = MWSS()

blinker


9. Heavy-weight Spaceship

Type: Spaceship

board = HWSS()

blinker


10. Custom

To make your own initial pattern just edit the custom function at the bottom of the initials.py file

board = custom()

custom

About

Implementation of Conways Game of Life providing the moore and neumann neighborhood option. For more info visit:

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages