isRowViolated method

bool isRowViolated(
  1. Position position
)

Determines if a row is violated by using a Set of Cell values If, while building this Set, a duplicate value is going to be added, then this row is violated No violations are counted for empty cells (cells whose value is 0)

Implementation

bool isRowViolated(Position position) {
  return _doesCellCollectionHaveViolatedCells(getRow(position.grid!.x as int));
}