예제 #1
0
 private void InitializeBoardValues()
 {
     for (int i = 0; i < 81; i++)
     {
         cellData.Add(GridMath.AllPossibleValues());
     }
 }
예제 #2
0
        public List <int> GetUnsolvedValues()
        {
            var result = GridMath.AllPossibleValues();

            foreach (int index in Keys)
            {
                if (this[index].IsSolved())
                {
                    result.Remove(this[index].First());
                }
            }

            return(result);
        }
예제 #3
0
 public CellData GetCellDataForSquare(int i)
 {
     return(GetCellDataForIndices(GridMath.GetIndicesInSquare(i)));
 }
예제 #4
0
 public CellData GetCellDataForColumn(int i)
 {
     return(GetCellDataForIndices(GridMath.GetIndicesInColumn(i)));
 }
예제 #5
0
 public CellData GetCellDataForRow(int i)
 {
     return(GetCellDataForIndices(GridMath.GetIndicesInRow(i)));
 }