Giter Site home page Giter Site logo

life_simulator's Introduction

Game of Life

About game

Game "Life" (Conway's Game of Life) - "cellular machine". It was invented by the English mathematician John Horton Conway in the distant 1970s.

The playing surface is an infinite or limited field divided into a certain number of cells. Each cell can be either alive or dead. With each move the population of the field changes according to simple rules:

  1. A cell with less than two neighbors dies of loneliness;
  2. A cage with more than three neighbors dies of overpopulation;
  3. A dead cell with exactly three neighbors comes to life.

The game world develops without the help of a player. From it you only need to arrange the cells for the first generation. Often the development of the world becomes completely unpredictable. Cells form complex patterns, and as soon as you begin to think that you have understood everything, they suddenly die out, or "hang" in an endless cycle.

About program

In this program you have two parameters :

  1. Resolution - this parameter control how close you will see cells.
  2. Density - this parameter control how many cells you will see.

You also have three buttons :

  1. Start - to start a new genration.
  2. Stop - to stop moving current generation (you can't press this button if you won't press "Start").
  3. Continue - if you pressed "Stop"? you can press "Continue" to continue the life of cells.

Learn more

https://uk.wikipedia.org/wiki/%D0%96%D0%B8%D1%82%D1%82%D1%8F_(%D0%B3%D1%80%D0%B0)

life_simulator's People

Contributors

pashamks avatar

Stargazers

 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.