public void Puzzles_SolvedInTime()
 {
     foreach (var puzzle in PredefinedPuzzles.GetAllValidPuzzles())
     {
         RunPuzzle(puzzle);
     }
 }
예제 #2
0
        private void LoadNewPuzzle_Click(object sender, RoutedEventArgs e)
        {
            var puzzle = PredefinedPuzzles.GetRandomPuzzle();

            InitializeGrid();
            InitializeEngine();
            engine.LoadPuzzle(puzzle);
            PuzzleName.Content = puzzle.Name;
            SetMoveCount();
            PopulateUIWithValues();
            DrawAllPossibles();
        }
예제 #3
0
        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();
        }