Exemple #1
0
        public bool TrySolving()
        {
            for (int i = 0; i < 9; i++)
            {
                currentBoard.GetSection(i, SectionType.ROW).SingleOut();
                currentBoard.GetSection(i, SectionType.COLUMN).SingleOut();
                currentBoard.GetSection(i, SectionType.REGION).SingleOut();
            }

            if (currentBoard.Solved())
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }