GithubHelp home page GithubHelp logo

candaceyw / conways-game-of-life Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.6 MB

Conway's Game of Life, also known as the Game of Life or simply Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is the best-known example of a cellular automaton.

Home Page: https://conways-game-of-life-iota-virid.vercel.app

License: MIT License

HTML 12.10% CSS 11.13% JavaScript 76.77%

conways-game-of-life's Introduction

Netlify Status

Conways Game of Life

Cellular Automaton

ABOUT THE GAME

Conway's Game of Life, also known as the Game of Life or simply Life,
is a cellular automaton devised by the British mathematician
John Horton Conway in 1970. It is the best-known example of a cellular automaton.

The "game" is actually a zero-player game, meaning that its evolution
is determined by its initial state, needing no input from human players.
One interacts with the Game of Life by creating an initial
configuration and observing how it evolves.

RULES
The universe of the Game of Life is an infinite two-dimensional orthogonal grid
of square cells, each of which is in one of two possible states, live or dead.
Every cell interacts with its eight neighbours, which are the cells that are
directly horizontally, vertically, or diagonally adjacent. At each step in time,
the following transitions occur:

    1. Any live cell with fewer than two live neighbours dies
        (referred to as underpopulation or exposure).
    2. Any live cell with more than three live neighbours dies
        (referred to as overpopulation or overcrowding).
    3. Any live cell with two or three live neighbours lives,
        unchanged, to the next generation.
    4. Any dead cell with exactly three live neighbours
        will come to life.

The initial pattern constitutes the 'seed' of the system. The first generation
is created by applying the above rules simultaneously to every cell in the
seed โ€” births and deaths happen simultaneously, and the discrete moment at which
this happens is sometimes called a tick. (In other words, each generation is a
pure function of the one before.) The rules continue to be applied repeatedly
to create further generations.


FEATURES
    1. Colors randomizes as generation increases.
    2. User can change grid size
    3. User can select speed
    4. Random generation can be set
    5. User can select cells to create a starting point
    6. User can start and stop generations
    7. User can clear the grid board

USING THE CODE
   React App
   Install dependencies: npm install
   Run locally: npm start

conways-game-of-life's People

Contributors

candaceyw avatar

Watchers

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