Efficient Conway's Game of Life using NumPy
Project description
GoLPy
GoLPy is an efficient Conway's Game of Life implemented in Python using NumPy.
Example Output
The following GIF can be generated using the command:
life --demo glidergun --out glider_gun.gif --ppc 10 --pos TL -W60 -H40
Usage
usage: life [-h] (-i IN | -d DEMO) [-o OUT | --debug-print] [-W WIDTH] [-H HEIGHT] [-M MAX_GEN] [--ppc PPC] [-P POS] [-p]
optional arguments:
-h, --help show this help message and exit
-i IN, --in IN
-d DEMO, --demo DEMO
-o OUT, --out OUT
--debug-print
-W WIDTH, --width WIDTH
-H HEIGHT, --height HEIGHT
-M MAX_GEN, --max-gen MAX_GEN
--ppc PPC
-P POS, --pos POS
-p, --profile
Input Format
........................O
......................O.O
............OO......OO............OO
...........O...O....OO............OO
OO........O.....O...OO
OO........O...O.OO....O.O
..........O.....O.......O
...........O...O
............OO
Use .
for a dead cell, O
(chr(79)
) for a live cell.
License
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 Distribution
golpy-0.1.1.tar.gz
(5.3 kB
view details)
Built Distribution
golpy-0.1.1-py3-none-any.whl
(5.7 kB
view details)
File details
Details for the file golpy-0.1.1.tar.gz
.
File metadata
- Download URL: golpy-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-1036-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23824d572b0bf1adbe24da347324cf9a314741d9dec1fd6f11c9838712dc2d18 |
|
MD5 | 03468527d83d2579953a99943b3cf9b5 |
|
BLAKE2b-256 | fcd54b1454d32dfc061dd33a954f0d8b195f6d5cb848657374ce2a7736a37733 |
File details
Details for the file golpy-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: golpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.4.0-1036-gcp
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4efe03fc80fd9fb72280fac68c0d02cef75b2984e22c6caa31df22e7b32b7bb |
|
MD5 | 7462fb7812cab76d2ee4a437b47d5aa3 |
|
BLAKE2b-256 | cf728d1c890ac36fa0800a6273e2101156e0409693531f07dd97eb43aba860aa |