Level 2: Game of Life
Introduction to Level 2
Congratulations on reaching Level 2: Game of Life.
In this level, you will develop a console application that simulates Conway's Game of Life.
This exercise will help you hone your Test-Driven Development (TDD) skills, emphasizing both inside-out and outside-in approaches.
Additionally, you will focus on single responsibility and writing comprehensive unit tests to ensure your application functions correctly.
Before starting this Kata watch EGO video about the game of life it will bring you all the general knowledge to do this exercise : https://www.youtube.com/watch?v=eMn43As24Bo
Concepts to Master
Console App: Gain experience in developing a console-based application.
TDD Inside-Out: Start with writing unit tests for the smallest parts (cells) of your application and build outwards (to grid engine).
TDD Outside-In: Begin with higher-level tests (grid engine) and work your way down to the finer details (cells).
Single Responsibility: Ensure that each module or function in your code has a single, well-defined purpose.
Unit Test: Write and run unit tests to validate the functionality of individual components.
Specifications
Build a command line or simple web app with the following capabilities
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.
Online example : https://playgameoflife.com/ More infos : https://playgameoflife.com/info
Last updated