Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: SkyscraperPuzzle(int[], int[], int[], int[])

Declaration

public SkyscraperPuzzle(
    int[] topClues,
    int[] rightClues,
    int[] bottomClues,
    int[] leftClues
)

Summary

Returns a Puzzle object that represents a Nonogram puzzle with the specified column and row clues.

Parameters

int[]topClues The column clues along the top edge of the grid, from left to right. Each integer specifies the number of visible skyscrapers in each column.
int[]rightClues The row clues along the right edge of the grid, from top to bottom.
int[]bottomClues The column clues along the bottom edge of the grid, from left to right.
int[]leftClues The row clues along the left edge of the grid, from top to bottom.

Exceptions

  • System.ArgumentNullException
    Thrown if any argument is null.
  • System.ArgumentException
    Thrown if any argument is a zero-length array, or any two of the arrays do not match in length.