Skip to content

_floodFill only if numAdjacentMines=0 #2

@tornordqvist

Description

@tornordqvist

When I'm testing openCell I get unexpected behavior if a cell has numAdjacentMines>0. The function floodFills surrounding cell, which it shouldn't. Right?

It should floodFill:
if (!cell.isMine && cell.numAdjacentMines===0) { ...

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