Skip to content

A shabby lil Conway's game of life implementation in p5.js

Notifications You must be signed in to change notification settings

suynep/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Conway's Game of Life

Conway's game of life is a 2-D /Cellular Automata/. Cellular Automaton is a self regulating entity which progresses generationally following a set of rules.

** Rules for Conway's Game of Life

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

** How to Implement

*** My Approach Create two classes, one for the Global Grid (class Grid) and one for the individual cell(class Cell). [ /Note that this could've been done by creating a single Cell class and working from that to create a Grid replica, however I'm too lazy to think tha-at far/ ].

*** A Better Approach

  • eager to know

About

A shabby lil Conway's game of life implementation in p5.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published