Esempio n. 1
0
        static SudokoStatus FillCurrent(Sudoko_Try st)
        {
            int row = 0, col = 0;

            int[] counter = new int[10];


            /// Fill line
            for (int i = 0; i < counter.Length; i++)
            {
                counter[i] = 0;
            }
            for (row = 0; row < 9; row++)
            {
                for (col = 0; col < 9; col++)
                {
                    counter[st.bases[9 * row + col, 0]]++;
                }
            }
            // check
            for (int i = 1; i < counter.Length; i++)
            {
                if (counter[i] > 1)
                {
                    return(SudokoStatus.Failed);
                }
            }
        }
Esempio n. 2
0
 static SudokoStatus GetNext(Sudoko_Try st, out Sudoko_Try next)
 {
 }