Installed with automatic script
- Source file
- Basic test file
- Jest for testing (watch and coverage)
- EsLint + Prettier for code style check and linting
- Complexity check
- Automated pipelies with Github actions
- The tests and checks runs automatically and indicates above ^
As a user, I have to see an empty board, filled with some bombs
- User test 1/1: The board should be an object
- User test 1/2: It should be false if there are more bombs than fields-1
- User test 1/3: The bombs must be hidden on the board
Game over on step [1,1] on a bomb
- User test 2/1: Steps should be a list of coordinates and actions
- User test 2/2: It should return with Game over, because a bomb is found
Clean square 2;0 and get the number of bombs around
- It should return 3 because 3 bombs around
Mark the bombs around – What I expect after I marked the 3 squares as bombs [1;0 + 1;1 + 0;1]
- Should mark the bombs with a *
Game Victory – After I cleared the all the squares [2;0 + 2;1 + 2;2 + 1;2 + 1;2]
- Should return the victory message is no more moves
Mass wictory
- It should return with victory message, clicking on empty field