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); }
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(); }