Esempio n. 1
0
 /// <summary> <!-- {{{1 --> Constructor
 /// </summary>
 /// <param name="idx"></param>
 public Cell(SudokuCellIndex idx)
 {
     idx.AssertWhenInvalid();
     this.index     = idx;
     this.candidate = new Candidates();
     this.value     = SudokuValue.NA;
 }
Esempio n. 2
0
 /// <summary> <!-- {{{1 --> Get cell from cell index
 /// </summary>
 /// <param name="idx"></param>
 /// <returns></returns>
 public Cell CellFromIndex(SudokuCellIndex idx)
 {
     idx.AssertWhenInvalid();
     return(this.board.ElementAt(idx.ToInt()));
 }