Skip to content

rushtong/life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Life Overview

Modified from cse.msu.edu assignment

See also wiki entry

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

Requirements

Install gradle (i.e. brew install gradle or something specific to your platform)

Run wrapper:

gradle wrapper

Running

Requires Gradle

./gradlew run

Testing

  • TODO

TODO

  • Really should write some tests :-(
  • Should make seed and number of children configurable.
  • Would be nice to be able to run the generations until a stable pattern is found, if possible.
  • Would be super cool to turn the output into an animated gif.
  • Should test out some of the patterns in the wiki entry.
  • Would be nice to have a random grid generator

About

Simple game of life

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages