Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: HashSet<int> FindArea(int, int, int, Func<int, bool>)

Declaration

public static HashSet<int> FindArea(
    int cell,
    int width,
    int height,
    Func<int, bool> isValue
)

Summary

Provides a helper method to determine if an area is contiguous.

Parameters

intcell Starting cell from which to determine a contiguous area.
intwidth Width of the puzzle grid.
intheight Height of the puzzle grid.
Func<int, bool>isValue Determines whether a cell contains a value that should be part of the contiguous area.

Returns

A hashset containing the contiguous area.