Conway's Game of Life written in React and Typescript.
From Wikipedia:
The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. It is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. It is Turing complete and can simulate a universal constructor or any other Turing machine.
git clone https://github.com/ozrix84/game-of-life.git
npm i
Development mode
npm start
Production build
npm run-script build
Preview / serve the production build via serve -s build
Run tests
npm run-script test
- If there are less than two organisms of one type surrounding one of the same type, then it will die due to isolation.
- If there are two or three organisms of the same type living in the elements surrounding an organism of the same type, then it may survive.
- If there are four or more organisms of one type surrounding one of the same type, then it will die due to overcrowding.
- If there are exactly three organisms of one type surrounding one element, they may give birth into that cell. The new organism is the same type as its parents.
- If this condition is true for more than one species on the same element then species type for the new element is chosen randomly.