Skip to content

Game Loop State Management (Win/Loss) #10

@lukeKilpatrick-minitap

Description

@lukeKilpatrick-minitap

Description
Handle the victory and defeat conditions.

Requirements

  • Loss Condition: If a mine is revealed:
    • Freeze the timer.
    • Change Smiley to "Dead".
    • Reveal all other mines.
    • Mark any incorrect flags with an 'X'.
  • Win Condition: If (Total Cells - Mined Cells) == (Revealed Cells):
    • Freeze timer.
    • Change Smiley to "Sunglasses".
    • Auto-flag remaining covered cells (the mines).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions