Skip to content
Game Of Life
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data changed screenshot Jul 17, 2017
src reduced complexity Jul 16, 2017
tests
.editorconfig beautify CLI Jul 15, 2017
.gitignore
.styleci.yml
.travis.yml travis.yml Jul 16, 2017
CONDUCT.md beautify CLI Jul 15, 2017
CONTRIBUTING.md beautify CLI Jul 15, 2017
INSTRUCTIONS.md added all files Jul 15, 2017
LICENSE.md
README.md Update README.md Oct 2, 2019
clover.xml
composer.bak.json beautify CLI Jul 15, 2017
composer.json phpunit version for CI Jul 16, 2017
life.php random bug Jul 17, 2017
phpunit.xml code coverage Jul 16, 2017
screenshot.png changed screenshot Jul 17, 2017
scrutinizer.yml disable external code coverage Jul 16, 2017

README.md

game-of-life

Build Status Quality Score Coverage Status Software License

Connway's game of life implementeation using PHP some of best practices

Screenshot

Structure

data/
src/
tests/
vendor/

Install

Go to downloaded directory and use command

$ composer install

Usage

Using a file:

$ php life.php -v -f data/glider_gun.xml

Getting help:

$ php life.php -h

Connway's Game of Life by Midori Kocak

Usage: life.php [-f filename, --filename filename] [-h, --help] [-i iterations, --iterations iterations] [-o outputFilename, --outputFilename outputFilename (default: out.xml)] [-r, --random] [-s size, --size size] [-sp species, --species species] [-v, --verbose]

Optional Arguments:
	-r, --random
		Create Game of life from random matrix
	-i iterations, --iterations iterations
		Number of iterations
	-s size, --size size
		Square size of the world
	-sp species, --species species
		Amount of species
	-f filename, --filename filename
		File Name of XML input
	-o outputFilename, --outputFilename outputFilename (default: out.xml)
		File Name of XML output
	-v, --verbose
		Verbose output, shows GameOfLife in CLI
	-h, --help
		Prints a usage statement

Using a random array generated using size:

$ php life.php -r -s 40 -i 1024 -sp 1 -v

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ phpunit

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email midori@mynameismidori.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.