Code Monkey home page Code Monkey logo

conways-game-of-life's Introduction

Conways-Game-Of-Life

Powered by Angular CLI


The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.

image

Here are the rules..

  • Any live cell with fewer than two live neighbors dies (under-population).
  • Any live cell with two or three live neighbors lives on to the next generation (suitable conditions).
  • Any live cell with more than three live neighbors dies (over population).
  • Any dead cell with no more and no less than three neighbors comes to life (reproduction).

History of the game:

Conway was interested in a problem presented in the 1940s by mathematician John von Neumann, who attempted to find a hypothetical machine that could build copies of itself and succeeded when he found a mathematical model for such a machine with very complicated rules on a rectangular grid. The Game of Life emerged as Conway's successful attempt to drastically simplify von Neumann's ideas. The game made its first public appearance in the October 1970 issue of Scientific American, in Martin Gardner's "Mathematical Games" column. From a theoretical point of view, it is interesting because it has the power of a universal Turing machine: that is, anything that can be computed algorithmically can be computed within Conway's Game of Life.

Angular 4 Implementation

This folder contains the Angular 4 implementation of Conway's Game of Life.

Demo

Demo has been deployed on heroku. So be patient; app may take some time to load for the first time

You can click here to see the demo.

Disclaimer

This code has been tested on modern browsers only.

Prerequisite

  • You must have node installed on your system. To verify run the following commands in command prompt;
# The following commands will print out node and npm versions
$ node -v
$ npm -v

Setup

Once you clone the repository in your local system, run the following commands;

$ npm install # Install all the app dependencies
$ npm run serve # run app in development environment

# Optional: or start the app on express server using build files
$ npm start

To Run Tests

# You can run the following command to test the app
$ npm test

So, What's next?

Everyone is welcome to suggest improvements. Feel free to fork this repository or create a pull request for improving this project.

conways-game-of-life's People

Contributors

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