Conway's game of life
This is an implementation of the Conway's game of life using pygame.
The Universe is circular : left border touch the right one, top border touch the bottom one.
Many games are implemented, the rules come from https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life.
I've only implemented "simple" games, using the 8 cells around the current cell.
Available Games
- conway classic
- HighLife
- Day&Night
- Immigration (With colors !)
- QuadLife (more colors !)
- Life without death (Flakes)
- 34 Life B34/S34
- Seeds
- Diamoeba B35678/S5678
- 2x2 B36/S125
- Morley B368/S245
- Anneal B4678/S35678
Installation
Using pip
$ cd /path/to/the/projects
$ mkdir Conway && cd Conway
python3 -m venv ./venv
source ./venv/bin/activate
pip install conway-pygame
When installed with pip, you can use the conway_pygame command to play a game.
Installation with git
$ git clone https://gitlab.com/frague59/conway.git
$ cd conway
$ python3 -m venv ./venv
$ . venv/bin/activate
$ pip install -r ./requirements.txt
Usage
With GIT install
$ python3 -m conway_pygame --help
pygame 2.1.2 (SDL 2.0.16, Python 3.9.12)
Hello from the pygame community. https://www.pygame.org/contribute.html
Usage: python -m conway_pygame [OPTIONS] [[conway|highlife|dayandnight|immigra
tion|quadlife|replicator|flakes|34life|diamoeba
|seeds|2x2|morley|anneal]]
Conway's game of life using `pygame <https://www.pygame.org/>`_.
Options:
-w, --width INTEGER Width of the grid.
-h, --height INTEGER Height of the grid.
-n, --initial INTEGER Number of living cells at start.
-d, --debug DEBUG mode - Slow down the game and write rounds to
stdout.
--version Show the version and exit.
--help Show this message and exit.
With pip install
$ conway_pygame --help
Metadata
Release files for conway-pygame 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conway_pygame-0.3.0.tar.gz | 9.0 kB | Without provenance | Details for conway_pygame-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conway_pygame-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for conway_pygame-0.3.0-py3-none-any.whl |
Total release size: 17.4 kB
Release files / conway_pygame-0.3.0.tar.gz
| Download URL | conway_pygame-0.3.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2cbac562ab0dd8133bba9c8ff9d1855730d48f4d15f4cc0708cee019ec7f453
|
|
BLAKE2b-256 checksum How to use checksums |
73d719b2550b0a22b0319c414f0f6a6fcd5dcf9f858bfb8b7c2060cf7c7904b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / conway_pygame-0.3.0-py3-none-any.whl
| Download URL | conway_pygame-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38306abd4bd6ebfc216a55c95157c9e20bd66025e2d403c93dc1c39cb356a9c2
|
|
BLAKE2b-256 checksum How to use checksums |
17ec08c059716ded1284d7491c9996fe125c071a9290e18e6b5e42dc8eed44cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for conway-pygame 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.