https://github.com/degd/miniature-planet
Repository for a game of life library.
https://github.com/degd/miniature-planet
class function game-of-life game-of-life-python library python3
Last synced: about 1 year ago
JSON representation
Repository for a game of life library.
- Host: GitHub
- URL: https://github.com/degd/miniature-planet
- Owner: degD
- License: mit
- Created: 2022-07-04T06:10:17.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-28T19:42:58.000Z (almost 4 years ago)
- Last Synced: 2023-07-31T12:38:09.469Z (almost 3 years ago)
- Topics: class, function, game-of-life, game-of-life-python, library, python3
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# miniature-planet
This is my take on Game of Life.
gol.py is the class file, cool_iterator.py is a function file. In it, a very special function resides.
## What is game of life?
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
## Requiriments
gol.py doesn't have any dependancies. But cool_iterator.py depends on the [blessed](https://pypi.org/project/blessed/) module.
## How does it work?
Read the upper section of gol.py for further information about the implemention.
## How to use it?
Import ```gol```, create a ```GameOfLife``` instance, and then use the ```.tick()``` method.
Or you can just import ```blessed``` and ```cool_iterator``` modules, and use the ```cool_iterator()``` function,
which is a better way to visualize it.
Lastly, put a 2-dimensional list in it. Again, read gol.py file for more information.