Skip to main content

Conway's Game of Life with extra events.

Project description

Conway's Game of Life

This project is a simulation of the famous 0 player cell automata game Conway's Game of life! It can simulate the regular game as well as a special mode with extra sudden events to add randomness to the deterministic game.


Video Demo

Click to Watch Screenshot 2026-01-27 205231

Features

  • Custom number of generations simluated
  • Customisation of weights
  • Special Events which affect the spawn/death cycles
  • Cells can have colours!
  • Randomly generated Bombs!
  • Grid Scales with terminal size

Usage Tutorial

When you run the program you can either run it without configuring the settings or configure them in you want to customise the board a bit. Here is an explanation of all the settings.

Setting Explanation
Dead Cell Weight Configures the chance of a cell initally spawning empty/dead.
Alive Cell Weight Configures the chance of a cell initally spawning alive.
Bomb Cell Weight Configures the chance of a cell initally spawning with a bomb.
Normal Gen Weight Configures the chance of no special event.
Famine Gen Weight Configures the chance of Famine special event.
Love Gen Weight Configures the chance of Love special event.

You will get to see the inital state of the board before you start. If you wish to reset the board enter the letter 'r' to do so. This is the last stage to change the grid size with an explanation of how ot do so below.

Changing Resolution

To change the board size quickly you need to zoom out/in in the terminal and/or change the font size. To zoom in or out quickly in the Windows terminal hold CRTL+Scroll.

Build & Run

This program has only been tested to run on Windows 11 so I cannot guarantee function on other platforms however I do not believe there is any reason why it shouldn't work.

Windows

pip install ConwayGameOfLife
ConwayGameOfLife

AI Usage

ChatGPT was used for this project for the inital menu.

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

conwaygameoflife-1.0.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conwaygameoflife-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file conwaygameoflife-1.0.0.tar.gz.

File metadata

  • Download URL: conwaygameoflife-1.0.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for conwaygameoflife-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6d2210a0a9d9b6732657eddf65a0d3446061b292a6b297bd344115ca6d0d401d
MD5 d74a48437a53b142ed8800282b7f4a51
BLAKE2b-256 d97603cd18b7266372a9d9c1c0f1f469bd60513afc3fbbcabca2de67ec67016c

See more details on using hashes here.

File details

Details for the file conwaygameoflife-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for conwaygameoflife-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5150bdbd1b08cc96d0d0f90b7c18eb6ea94d6b683f2ba84fd9e757bcdba36c6
MD5 555067a77c3a26fd9693caa0cd7c59ed
BLAKE2b-256 fce438d4f23f0d07061639da06dffc0c0ea4f5372f48ef2f5876f505494f3eaa

See more details on using hashes here.

Supported by

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