Example #1
0
        /// <summary>
        /// Initialize sudoku and execute validations in procedural
        /// </summary>
        public void ExecuteProcedural()
        {
            //Init board
            this.Initialize();

            this.SetStopWatch();

            //Initizialise worker
            this.XLineListener = new SudokuLineValidator(this);
            this.XLineListener.CheckLines(this.Board, this.Board);

            this.YLineListener = new SudokuColumnValidator(this);
            this.YLineListener.CheckColumns(this.Board, this.Board);

            this.SquareListener = new SudokuSquareValidator(this);
            this.SquareListener.CheckSquares(this.Board, this.Board);

            //this.Show(this.Board);
            //this.Show(this.BoardHidden);
            this.ShowSimulation(this.Board, this.BoardHidden);

            UnsetStopWatch();
        }
Example #2
0
 /// <summary>
 /// Set and Starts Line Validator
 /// </summary>
 private void StartLineValidator()
 {
     this.XLineListener = new SudokuLineValidator(this);
     this.XLineListener.CheckLines(this.Board, this.Board);
 }