Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vonglasow/game-of-life
https://github.com/vonglasow/game-of-life
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vonglasow/game-of-life
- Owner: vonglasow
- Created: 2014-07-10T11:56:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-16T12:39:00.000Z (almost 10 years ago)
- Last Synced: 2024-11-06T22:45:09.760Z (2 months ago)
- Language: PHP
- Size: 320 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Game Of Life
============An implementation of the famous [Game Of
Life](http://en.wikipedia.org/wiki/Conway's_Game_of_Life) (Conway 1970) with
[Hoa\Console](https://github.com/hoaproject/Console)Installation
============```sh
git clone [email protected]:vonglasow/game-of-life.git
composer install
```Usage
=====```sh
php bin/GameOfLife.php
```Use `-r` to create a random world
`-x` and `-y` is used to define the size of the world at least 40 for the
default world```sh
php bin/GameOfLife.php -x 40 -y 40
```Tests
=====All tests are written with [Atoum](https://github.com/atoum/atoum) or
[Praspel](https://github.com/hoaproject/Contributions-Atoum-PraspelExtension)To generate praspel tests
```sh
./vendor/bin/praspel generate -c GameOfLife\\Conway -r .
```##To run all tests##
```sh
./vendor/bin/atoum -d tests
```##To run Atoum's test##
```sh
./vendor/bin/atoum -f tests/units/Conway.php
```##To run Praspel's test##
```sh
./vendor/bin/atoum -f tests/praspel/GameOfLife/GameOfLife/Conway.php
```