Skip to content

Game Flow

Moritz Riede edited this page Oct 19, 2024 · 7 revisions

States

1. Initializing

Preparation

  • 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.

Player Action

  • 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.

2. Playing

Gameplay

  • 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.

Player Decisions

  • 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.

3. Game-Over State

Display

  • Show a gameover message.
  • Reveal all mines.
  • Display stats: Percentage completed, total uncovered area, total number of cells, and total mines.

Player Options

  • Restart with a new game or the same GeoTIFF data.
  • View leaderboard or share score, if relevant.

3. Finished State

Display

  • Congratulate the player for completing the game.
  • Reveal all mines.
  • Display stats: Time taken, total number of cells, and total mines.

Player Options

  • Restart with a new game or the same GeoTIFF data.
  • View leaderboard or share score, if relevant.