Exemple #1
0
        private void Reset()
        {
            this.GameGrid.Children.Remove(board.board);
            game  = new Game(diff);
            board = new GUIBoard(game);

            this.GameGrid.Children.Add(board.board);
            solve = new Solver(game);
        }
Exemple #2
0
        public MainWindow()
        {
            InitializeComponent();

            diff = Difficulty.Easy;

            game  = new Game(diff);
            board = new GUIBoard(game);
            this.GameGrid.Children.Add(board.board);
            solve = new Solver(game);

            dispatcherTimer          = new DispatcherTimer();
            dispatcherTimer.Tick    += DispatcherTimer_Tick;
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 100);
            dispatcherTimer.Start();
        }