-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementAn extension that isn't necessaryAn extension that isn't necessary
Description
Having a way to build and/or write a minefield
Can be used for automated and non-automated testing by allowing for specific contrived situations.
At the very least must take the x and y dimensions of the board and the number of mines.
That way, it can correctly throw exceptions if any of the above is an impossible situation (e.g. all cells are mines, map too small, ...)
could have something like:
- read an exact representation of the board (which cells have mines, which ones are open, etc.)
- only read the location of mines
Probably requires some refactoring of GameImpl by shifting functions around and extracting some functionality into helpers
This interface should pave the way to unit testing capabilities
Metadata
Metadata
Assignees
Labels
enhancementAn extension that isn't necessaryAn extension that isn't necessary