MovingBlocks
Add a win condition and prize to the Minesweeper Module
One of the new modules we have is a Minesweeper Module. At the moment it does not actually have an end condition. Completing a minefield does not offer a reward nor does the field get cleared. For the Win Condition, all the mines should be cleared from the field and some reward should be offered to the player.
Definition of 'Done'
- A pull request that contains the addition of the win condition and the reward
- A screenshot showing the reward being granted.
Where to start
- There is a function in MinesweeperSystem called
getMinesInRegion
which will search for some amount of padding outward from each mine that intersects the padding region - Depending on the number of mines hit; the size of the field can be determined and the prize can be adjusted accordingly.
- For testing It's possible to reduce the size of the field down to a single mine in the MineFacetProvider. This should make testing the mod easier.
- There are a couple options in terms of the reward. A trophy could be dropped, some form of particle effect or a selection of prizes are dropped. The actual reward is open to suggestion.
Task tags
Students who completed this task
Rajat Patel