Code Monkey home page Code Monkey logo

gameoflife's Introduction

Conway's Game Of Life

School Project By-Vaibhav Agarwal

Make sure to have the pygame library installed on the system.

Installation

In order to install pygame, use pip in Command Prompt.

py -m pip install -U pygame --user

Ensure that you have the images in the same folder.

The design folder has all the designs,you can create your own deisgn by creating a .txt file in the design folder or copy one from http://www.radicaleye.com/lifepage/glossary.html

At the heart of this game are four rules that determine if a cell is live or dead. All depend on how many of that cell's neighbors are alive.

  • Births: Each dead cell adjacent to exactly three live neighbors will become live in the next generation.
  • Death by isolation: Each live cell with one or fewer live neighbors will die in the next generation.
  • Death by overcrowding: Each live cell with four or more live neighbors will die in the next generation.
  • Survival: Each live cell with either two or three live neighbors will remain alive for the next generation.

Another important fact about the rules for the game of life is that all rules apply to all cells at the same time.

After clicking on some boxes to make the intial setup, Press ENTER to Start.

To increase the frame rate Press โ†’ To decrease the frame rate Press โ† Press UP to set the frame rate to 30

To reset the initial position Press Esc

Press c to change colour

Press q on the first page to enable infinite grid

https://docs.google.com/document/d/1PdtiJzSxUtwI9vErKIdYiXqsCxVfWDCH9aIA_VolYp8/edit?usp=sharing

gameoflife's People

Contributors

vaibhav20325 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.