Skip to content

Implement Recursive Flood Fill (Zero-Clear) #3

@lukeKilpatrick-minitap

Description

@lukeKilpatrick-minitap

Description
When a user reveals a cell with 0 neighbors, the game must automatically reveal all surrounding cells.

Requirements

  • Implement a recursive function (DFS or BFS).
  • Trigger: User reveals a cell where neighborCount == 0.
  • Action: Reveal all 8 neighbors.
  • Recursion: If any of those neighbors are also 0, repeat the process.
  • Stop condition: Stop when hitting a cell with neighborCount > 0.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions