minesweeper
minesweeper copied to clipboard
Add win condition
Summary
As a player, when I've successfully flagged all mines without tripping them, play should end.
Details
- After clearing the play area and flagging all probable mines, the game does not register a win condition
- Timer continues to run after a possible win condition
- Play area is still mutable after a possible win condition
- Minesweeper smiley does not don sunglasses indicating a win condition
Acceptance Criteria
Scenario: Successfully clear the play area
Given a user has revealed the play area And the amount of flags has not exceeded the amount of mines And the amount of mines matches the amount of remaining tiles When the game reveals the tile Then the game should inform the user that they have won And the timer should stop And the smiley should don sunglasses And the play area should lock
Out of Scope
- Present a hall of fame
- Keep a history of previous wins
Cheers @ziebelje. This is absolutely awesome. Figured I'd help however possible and I don't have any spare code cycles I can lend right now. Good luck!