Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vonglasow/game-of-life


https://github.com/vonglasow/game-of-life

Last synced: 16 days ago
JSON representation

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
```