public void Puzzles_SolvedInTime() { foreach (var puzzle in PredefinedPuzzles.GetAllValidPuzzles()) { RunPuzzle(puzzle); } }
private void LoadNewPuzzle_Click(object sender, RoutedEventArgs e) { var puzzle = PredefinedPuzzles.GetRandomPuzzle(); InitializeGrid(); InitializeEngine(); engine.LoadPuzzle(puzzle); PuzzleName.Content = puzzle.Name; SetMoveCount(); PopulateUIWithValues(); DrawAllPossibles(); }
public MainWindow() { InitializeComponent(); InitializeEngine(); InitializeGrid(); var puzzle = PredefinedPuzzles.GetPuzzleByGroupAndNumber("nakedpairs", 1); //var puzzle = PredefinedPuzzles.EmptyPuzzle; //var puzzle = PredefinedPuzzles.GetRandomPuzzle(); engine.LoadPuzzle(puzzle); PuzzleName.Content = puzzle.Name; PopulateUIWithValues(); DrawAllPossibles(); }