Skip to main content

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


Download files

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

Files for conway, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size conway-1.0.tar.gz (5.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page