Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: Akari(int, int, bool[], int?[])

  • Declared in: PuzzleSolvers.Akari

Declaration

public Akari(
    int width,
    int height,
    bool[] isBlock,
    int?[] clues
)

Summary

Instantiates an Akari puzzle.

Parameters

intwidth Width of the Akari puzzle.
intheight Height of the Akari puzzle.
bool[]isBlock Determines which cells are blocks — cells that block the line-of-sight of lightbulbs.
int?[]clues Determines which cells are clues. A clue determines the number of lightbulbs orthogonally adjacent to the cell. A clued cell must also be a block (isBlock must be true at this index).