A simple Game Of Life demo using the Blessings terminal lib
Project description
Conway is a dead-simple implementation of Conway’s Game Of Life using my Blessings terminal library. It detects your terminal size and color depth and blits a lovely cellular automaton for your ogling pleasure.
Features
Simple implementation
Pretty colors
Few calories
Nudges itself out of repetitive patterns
Rather than having a zillion features, Conway focuses on clarity of implementation. It’s fun to hack on. Try implementing different wrap parameters for next_board!
Getting it running
pip install conway conway.py
You should see life explode before your eyes. When you’re done, hit contol-C, and it’ll clean up nicely after itself.
Kudos
Ripped off a really elegant implementation of the algorithm from Jack Diedrich (and ruined it).
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
File details
Details for the file conway-1.0.tar.gz
.
File metadata
- Download URL: conway-1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d716941511f8683f828a14744c1e89e10dcd9a992db769059905599905877cc |
|
MD5 | 111bd7b860b349a3b65386c1a22e2e98 |
|
BLAKE2b-256 | c56cf954f3edcf45db53a057be5bea36435582869afd455b804eb7f6afda27a9 |