Skip to content

ranran2121/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

1.Cd in the project folder

2.Set the node version:

nvm use 18

3.Install dependencies:

npm install

4.Start the app:

npm start

Play the game

  1. Seed the table by pressing the seed button
  2. Start/pause the game by pressing the start/pause button
  3. End/clear the game by pressing the clear button

Rules of the game

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, alive or dead, (or populated and unpopulated, respectively). Every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent. At each step in time, the following transitions occur: • Any live cell with two or three neighbors survives. • Any dead cell with three live neighbors becomes a live cell. • All other live cells die in the next generation. Similarly, all other dead cells stay dead.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published