Class Hint

Constructed using strategy object and info/action strings Inherited by hint classes for specific strategies like ObviousSingle Returns: Cause (cells that "cause" the strategy to be applicable) Effects (values you can place and/or notes you can remove due to strategy) Info (string that explains what strategy is being used) Action (string that explains how strategy is being used)

Hierarchy

  • Hint

Constructors

Properties

action: string
cellsCause: Cell[]
info: string
strategy: Strategy

Methods

  • Gets action

    Returns

    action

    Returns string

  • Gets coordinates of cells that "cause" strategy to be applicable

    Returns

    cells "causing" strategy

    Returns number[][]

  • Gets cells that "cause" strategy to be applicable

    Returns

    cells "causing" strategy

    Returns Cell[]

  • Gets cells that have had values placed in them as result of strategy

    Returns

    cells with values placed

    Returns Cell[]

  • Gets notes that can be removed as result of strategy

    Returns

    Groups containing notes to removed

    Returns Group[]

  • Gets groups that cause strategy

    Returns

    strategy groups

    Returns number[][]

  • Gets info

    Returns

    info

    Returns string

  • Gets row, column, and values for cells that have had values placed in them as result of strategy

    Returns

    2d number array containing arrays of form [row, column, value] for placed values (1-indexed)

    Returns number[][]

  • Gets notes that can be removed from cells along with their row and columns

    Returns

    2d number array containing arrays of form [row, column, noteA, noteB, ...] for removed notes (1-indexed)

    Returns number[][]

  • Gets strategy string

    Returns

    strategy string

    Returns string

  • Gets strategy type

    Returns

    strategy type

    Returns number

Generated using TypeDoc