GithubHelp home page GithubHelp logo

game-of-life's Introduction

This is an interactive sandbox which contains an implementation of Conway's Game of Life and several other Cellular Automata.

Note: This application was developed for the COMP5400 module at the University of Leeds. A supporting written report has been provided alongside this repository, which presents the work completed and discusses the use of Cellular Automata as a biological model. This can also be found in the docs folder.

Dependencies

  • Python 3

Running

  1. Install Python project dependencies:
cd src
pip3 install -r requirements.txt
  1. Run game_of_life.py
python3 game_of_life.py

User Guide

User Interface

Grid

The grid is where the automaton output will be displayed. Click on cells within the grid to interact with them.

Play/Pause

Press this button to start or pause the automaton on the current generation.

Options

Displays a list of automata to choose from.

Clear

Resets all cells in the grid to the default state.

Save

Saves the current grid state to a file which can be reloaded later.

Load

Load a previously saved file to the grid.

Speed Slider

Move the slider to the right to speed up the rate of automata generations.

Next

Advance the automata by one generation.

Automata Options

Several automata are included in the 'options menu,' which have different rules.

Vanilla Game

This is the standard ruleset for Conway's Game of Life.

Rock Paper Scissors

Click a cell multiple times to change it's type. Each type is able to 'dominate' one type, but loses to another type.

Immigration Game

Cells can be set to specific colors which interact with one another to form new varieties.

Shell Pattern

Cells propagate by following rules similar to those which determine crustacean shell patterns

Brian's Brain

Brian's Brain, another popular type of cellular automata which produces a lot of gliders.

Prisoner's Dilemma

A game in which cells play the Prisoners Dilemma and must decide between altruistic and greedy strategies.

game-of-life's People

Contributors

kieranwlc avatar danieljennings2001 avatar sc20sw 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.