A pure Python implementation of Conway's Game of Life using Tkinter.
Project description
Yet Another Conway's Game of Life
yacgol
is a pure Python implementation of Conway's Game of Life using Tkinter.
The game is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves, or, for advanced players, by creating patterns with particular properties.
At each step in time, the following transitions occur:
- Any live cell with fewer than two live neighbors dies, as if by under population.
- Any live cell with two or three live neighbors lives on to the next generation.
- Any live cell with more than three live neighbors dies, as if by overpopulation.
- Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.
- Conway's Game of Life Wikipedia page
Installing
$ pip install yacgol
$ yacgol -h
Using
Most interactions with yacgol
will take place within the Tkinter UI. So
fire up yacgol
and check it out!
Developing
First, install development packages:
$ pip install -r requirements-dev.txt
Testing
$ nose2
Linting
$ flake8
Coverage
$ nose2 --with-coverage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file yacgol-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: yacgol-0.5.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 457352cec1c2e60c00c9ea457630ef2866b8ec0df6d433fb0052114907204690 |
|
MD5 | bee803fe67a06423ef87d96252c9f32c |
|
BLAKE2b-256 | afd0d7626d355cfe7f1f29fa86e5eca3e5fee2494dbcd759a8d3fedb9b0c48ae |