pathakshashank17 / Conways-Game-of-Life-JS

JavaScript implementation of Conway's Game of Life

Home Page:https://pathakshashank17.github.io/Conways-Game-of-Life-JS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conway's Game of Life

Conway's Game of Life is a cellular automaton (yes, its automaton) devised by British mathematician John Horton Conway (May his soul rest in peace 🙏) in 1970. It is a zero player game, i.e. its evolution is determined by its intial state. It is Turing complete.

This static app hosts 50 x 50 grid using which one can set the initial state of the population. Hosted at Github page. Currently the grid is not optimized for mobile devices, so please use desktop version of the site if possible.

Rules

  • Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  • Any live cell with two or three live neighbours lives on to the next generation.
  • Any live cell with more than three live neighbours dies, as if by overpopulation.
  • Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

Examples

Still life

Block Block Block

Oscillator

Blinker Toad Pulsar

Spaceships

Glider Light Weight Spaceship

Gun

Gosper's Glider Gun

All info and resources cited from Conway's Game of Life on Wikipedia

About

JavaScript implementation of Conway's Game of Life

https://pathakshashank17.github.io/Conways-Game-of-Life-JS/


Languages

Language:JavaScript 68.7%Language:HTML 23.3%Language:CSS 8.0%