Skip to content

liam-ilan/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Game of Life in Node

By Liam Ilan

The game of life is a simulation of living cells and how they interact with one another.

The simulation occurs in a grid, in witch each cell is turned on or off in the next generation, depending on its neighbours.

If a cell has 3 neighbours, it is alive in the next generation. If a cell has 2 neighbours and is alive, it is alive in the next generation. If a cell has less than 2 neighbours it dies of underpopulation. If a cell has more than 3 neighbours it dies of overpopulation.

This is an implementation of the game of life in node.

To run the game, first clone this repo using

git clone https://liamilan@bitbucket.org/liamilan/game-of-life-node.git

Then enter the directory and initialize NPM.

cd your/file/game-of-life-node


npm init

To run the game, enter the directory, and then paste the following,

node index.js

To end the simulation press ctrl + c

About

The game of life in Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors