Class CellCollection

java.lang.Object
io.github.skenvy.CellCollection

public class CellCollection extends Object
A collection of cells ~ can be a row, column, or box|region|block.
  • Constructor Details

    • CellCollection

      public CellCollection()
      Initialise an empty collection to reference 9 cells in a row, column, or box.
    • CellCollection

      public CellCollection(int boardSize)
      Initialise an empty collection to reference N*N cells in a row, column, or box.
  • Method Details

    • getCells

      public List<Cell> getCells()
      Get a collection of the cells.
    • addCellToCollection

      public void addCellToCollection(Cell cell)
    • getValues

      public int[] getValues()