Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorgechato/game-of-life-kata
TDD Coding Kata with the game of life
https://github.com/jorgechato/game-of-life-kata
kata public python tdd
Last synced: 27 days ago
JSON representation
TDD Coding Kata with the game of life
- Host: GitHub
- URL: https://github.com/jorgechato/game-of-life-kata
- Owner: jorgechato
- Created: 2018-11-10T07:35:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T14:48:17.000Z (almost 6 years ago)
- Last Synced: 2024-11-07T10:45:59.798Z (3 months ago)
- Topics: kata, public, python, tdd
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Game of Life TDD Kata
```
.*.
*..
***
```Based on [Coding Dojo's Game of Life](http://codingdojo.org/kata/GameOfLife/)
## Rules
1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
2. Any live cell with more than three live neighbours dies, as if by overcrowding.
3. Any live cell with two or three live neighbours lives on to the next generation.
4. Any dead cell with exactly three live neighbours becomes a live cell.## Run
```bash
# Run game
$ python -m game.start# Run tests
$ python -m tests.start -v
```## Requirements
### Must have
- [python 3.x](https://www.python.org/downloads/)
- pip3### We recommend you
- [anaconda](https://anaconda.org/anaconda/python)
#### Install dependencies
```bash
# with anaconda
$ conda env create -f environment.yml # create virtual environment
$ conda activate gol # enter VE
(gol) $ conda deactivate # exit VE
```