Beispiel #1
0
 public int ToInt()
 {
     char[] digitC = new char[7];
     for (int i = 0; i < panels.Length; i++)
     {
         digitC[i] = panels[i].ToString()[0];
     }
     return(DigitHelper.StringToNumber(new string(digitC)));
 }
Beispiel #2
0
 public void PrintPossibleDigits()
 {
     foreach (int[] item in possiblePanels)
     {
         int number = DigitHelper.ArrayToNumber(item);
         if (number >= 0 && number < 10)
         {
             Console.WriteLine(number);
         }
     }
 }
Beispiel #3
0
        public int[] GetPossibleDigits()
        {
            List <int> result = new List <int>();

            foreach (int[] item in possiblePanels)
            {
                int number = DigitHelper.ArrayToNumber(item);
                if (number >= 0 && number < 10)
                {
                    result.Add(number);
                }
            }
            return(result.ToArray());
        }