Conway's Game of Life PHP implementation
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitattributes
.gitignore
.scrutinizer.yml
LICENSE.md
README.md
composer.json
composer.lock
phpunit.xml.dist
play.php

README.md

Conway's Game of Life

Build Code Quality Coverage

Simple PHP implementation with CLI visualization.

Run

  • Random matrix docker run --rm -v $PWD:/app -e MATRIX=random composer/composer start
  • Glider gun docker run --rm -v $PWD:/app -e MATRIX=glider_gun composer/composer start

Running test suite

docker run --rm -v $PWD:/app composer/composer tests

TODO

  • Tests
  • Increase cell lifetime to survive more than one generation instead of killing instantly
  • Predefined seeds like Gosper's glider gun!
  • Cell colors!
  • More matrices
  • Strategy support for cell interaction

Resources