GithubHelp home page GithubHelp logo

life's Introduction

'life'

a game of life simulator, written in python with pygame and numpy

it can be run with python main.py and you can use the -h flag to see command line options.

press space to pause, click on a cell to toggle its alive/dead state.

it provides a fun and pretty wild element of randomness, which i will call the zombie rule.

the zombie rule

every step, each dead cell with two neighbours can spontaneously come alive, as if animated by some dark magic force

use the -p [number] option to set the probability.

if you set it to something low-ish like 0.02 then you will get a nice balance between serentipitous fun chaotic patterns and recognisable Game of Life tropes™ such as the Glider, the Beehive and the Blinker.

life's People

Contributors

rjwebb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.