Skip to content

Bug: Win condition triggered with incorrect mine flags #9

@fantoua

Description

@fantoua

The game shows "Congratulations, you win!" even when mines are flagged with incorrect numbers, as long as all safe cells are revealed.

Possible solutions:

win condition validation:

  • All safe cells are revealed, AND
  • All mine counts are correctly marked
    Here: don't stop the game when one of the conditions aren't satisfied. Then the player can find the mistake and change it.

OR partial win

  • "All safe cells found, but mine counts are incorrect"
  • "Partial victory: Safe cells cleared, but X mines incorrectly marked"

Screenshot:

Image

Steps to Reproduce

  1. Start any game
  2. Play normally but intentionally mark some cells with wrong mine counts
  3. Reveal all safe cells (non-mine cells)
  4. Game shows "Congratulations, you win!" despite incorrect markers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions