Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Set and Starts Column Validator
 /// </summary>
 private void StartColumnValidator()
 {
     this.YLineListener = new SudokuColumnValidator(this);
     this.YLineListener.CheckColumns(this.Board, this.Board);
 }