Private boardPrivate causePrivate cellPrivate drillPrivate emptyPrivate groupsPrivate identifiedPrivate notesPrivate solutionPrivate strategyPrivate valuesGets cells that "cause" strategy to be applicable
cells
CustomError Thrown if strategy hasn't been identified
Gets groups that "cause" strategy to be applicable
2d array containing arrays with number representing GroupEnum and index or groups that cause strategy e.g. 0, 1 for 2nd row
CustomError Thrown if strategy hasn't been identified
Gets notes that can be removed
Cells containing notes that can be removed
CustomError Thrown if strategy hasn't been identified
Given a strategy type returns its tuple type e.g obvious triplet returns triplet
tuple type for given strategy type
strategy type
Gets values that can be placed
Cells containing values that can be placed
CustomError Thrown if strategy hasn't been identified
Private isChecks if strategy is amend notes and if so adds notes to remove from a cell (every note not removed should be added)
true if strategy is amend notes
corresponds to an array in empty cells
corresponds to an index in an array in emptyCells
Private isChecks if strategy is a hidden set of given tuple and if so adds notes to remove
true if strategy is a hidden tuple
e.g. could be single or pair for hidden single or hidden pair respectively
group type being check for a obvious set e.g. row
index of group being checked e.g. 3 for 4th group e.g. 4th row
array of cells in the given row, column, or box
stores indexes of the cells that make up the hidden set
exits early after determining if obvious set is found with no state changes, default to false
Returns true if strategy is a hidden set strategy
true if strategy type is a hidden set strategy
strategy type
Private isChecks if strategy is a obvious set of given tuple and if so adds values to be placed and notes to remove
true if strategy is a obvious tuple
e.g. could be single or pair for obvious single or obvious pair respectively
group type being check for a obvious set e.g. row
index of group being checked e.g. 3 for 4th group e.g. 4th row
array of cells in the given row, column, or box
stores indexes of the cells that make up the obvious set
exits early after determining if obvious set is found with no state changes, default to false
Returns true if strategy is a obvious set strategy
true if strategy type is a obvious set strategy
strategy type
Private isPrivate isChecks if strategy is simplify notes and if so adds notes to remove from a cell
true if strategy is simplify notes
corresponds to an array in empty cells
corresponds to an index in an array in emptyCells
Checks if strategy is a given strategy type and if so sets values to place, notes to remove
true if strategy is strategyType
strategy type that is being checked for
true if checking if strategy if valid for drill which requires there to be exactly one instance of given strategy
Checks if strategy is a given strategy type and if so sets values to place, notes to remove
true if strategy is strategyType
strategy type that is being checked for
Private verifyVerified that a strategy has been identified, otherwise throws an error
CustomError Thrown if strategy hasn't been identified
Static getReturns algorithm which includes all of the strategies in order of least to most complex
default algorithm
Generated using TypeDoc
Constructed using 2d array of cells Returns: Whether or object constitutes specific strategies Cause (cells that "cause" the strategy to be applicable) What candidates can be placed as result of strategy What candidates can be removed from cells notes as result of strategy What strategy type this is (correlates to StrategyEnum)