示例#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)));
 }