Example #1
0
        public bool IsComplete()
        {
            for (int x = 0; x < 9; x++)
            {
                SmallSquare smallSquare = GetSquare(x);
                if (!smallSquare.IsComplete())
                {
                    return(false);
                }
            }

            return(true);
        }
Example #2
0
        private bool CheckSubSquareValidity()
        {
            for (int x = 0; x < 9; x++)
            {
                SmallSquare smallSquare = GetSquare(x);

                if (!smallSquare.IsValid() || !smallSquare.IsComplete())
                {
                    return(false);
                }
            }

            return(true);
        }