Skip to content

Latest commit

 

History

History
178 lines (87 loc) · 1.81 KB

README.md

File metadata and controls

178 lines (87 loc) · 1.81 KB

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