Helps getting started with the CodeRetreat exercise.
In the CS folder you'll find a template project with MSpec already installed. Please enable NCrunch so your tests will run automagically.
If you want to explore ES6 you can go to the JS6 folder. It uses Google's traceur to transpile into JS5 To get started:
- Run
npm install - Run
npm install -g bower(If you don't have bower) - Run
bower install - Run
gulp - Open a browser and navigate to http://localhost:9000/default.html
- Now you can start running you JS implementation of The Game of Life using ES6. You can use TDD, while doing changes, the browser will be reloaded and tests will be executed automagically. When you add a new spec class, please include that in the default.html so your tests will start running.
For every cell in the universe:
Any cell with fewer than two live neighbours dies
Any live cell with two or three live neighbours lives on the next generation
Any live cell with more than three live neighbours dies
Any dead cell with exactly three live neighbours becomes a live cell