Skip to main content

A simple, colorful Game Of Life demo on the terminal

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 control-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).

Version History

1.1
  • Use “fullscreen mode” so we don’t leave a big white screen behind afterward.

1.0
  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

conway-1.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file conway-1.1.tar.gz.

File metadata

  • Download URL: conway-1.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for conway-1.1.tar.gz
Algorithm Hash digest
SHA256 21eaca45501923061a59ef99d51a785528d0dd976f6b334c94bbb24233e381bf
MD5 04766b5a92bad493fe30f184717e2943
BLAKE2b-256 6d6f424229b39fe32c9973e955502482d6857d26a056a15994b84a1cad99cbfc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page