In the project directory, you can run:
install the dependencies needed for the test application to run
Launches the test runner in the console.
- Depending on the initial conditions
- The Game.
- Cell: Boolean
- A few mathematical rules
- initial conditions
- public Arrays[x,y]: Boolean
- implements a set of mathematicial rules
- it has an initiation function(x: Int, y: Int, Array[x: Int,y: Int], steps)
-
Each cell with one or no neighbors dies, as if by solitude.
-
Each cell with four or more neighbors dies, as if by overpopulation.
-
Each cell with two or three neighbors survives.
- Each cell with three neighbors becomes populated.
// Arrange, Act, Assert
- Arrange: Prepare the System under test to a state you want
- Act: Operation you want to verify. Operation should change the system state
- Assert: Verify the new state is correct
- That tests the game initialization
- 2-5 Tests each of the rules of the game