-
Notifications
You must be signed in to change notification settings - Fork 0
Game Flow
Moritz Riede edited this page Oct 19, 2024
·
7 revisions
- Set up the hexagonal grid based on the options and the size of the GeoTIFF and place mine locations accordingly.
- Initialize counters for mines, uncovered cells, total cells and other stats.
- Render game board.
- Wait for the player to begin the game by clicking any cell.
- (The first click might be a mine due to fixed mine locations. Provide suggestions or hints for the first click?)
- Start timer and move to next phase.
- Uncover cells as per the standard Minesweeper rules, with the exception that cells are hexagonal and mine locations are fixed based on GeoTIFF data.
- Update any counters.
- Cells can be uncovered by left click, revealing a number or mine field.
- Suspected mine locations are "flagged" as suspicious by clicking on cells with the right mouse button.
- If the user uncovered a cell which is a mine, terminate the game and switch to Game-Over state.
- Or if all empty cells are uncovered and all mine fields are flagged, declare the game a victory and switch to Finished State.
For the future, it could be interesting to implement a way to interact with these data points on a map to reveal more data interactively.
- Show a gameover message.
- Reveal all mines.
- Display stats: Percentage completed, total uncovered area, total number of cells, and total mines.
- Restart with a new game or the same GeoTIFF data.
- View leaderboard or share score, if relevant.
- Congratulate the player for completing the game.
- Reveal all mines.
- Display stats: Time taken, total number of cells, and total mines.
- Restart with a new game or the same GeoTIFF data.
- View leaderboard or share score, if relevant.