Пример #1
0
        static private bool LoadPuzzles(string option)
        {
            bool finish = false;

            switch (option)
            {
            case "1":
                Day1 day1 = new Day1();
                day1.Execute();
                break;

            case "2":
                Day2 day2 = new Day2();
                day2.Execute();
                break;

            case "3":
                Day3 day3 = new Day3();
                day3.Execute();
                break;

            case "4":
                Day4 day4 = new Day4();
                day4.Execute();
                break;

            case "5":
                Day5 day5 = new Day5();
                day5.Execute();
                break;

            case "6":
                Day6 day6 = new Day6();
                day6.Execute();
                break;

            case "7":
                Day7 day7 = new Day7();
                day7.Execute();
                break;

            case "8":
                Day8 day8 = new Day8();
                day8.Execute();
                break;

            case "9":
                Day9 day9 = new Day9();
                day9.Execute();
                break;

            case "10":
                Day10 day10 = new Day10();
                day10.Execute();
                break;

            case "11":
                Day11 day11 = new Day11();
                day11.Execute();
                break;

            case "12":
                Day12 day12 = new Day12();
                day12.Execute();
                break;

            case "13":
                Day13 day13 = new Day13();
                day13.Execute();
                break;

            case "14":
                Day14 day14 = new Day14();
                day14.Execute();
                break;

            case "15":
                Day15 day15 = new Day15();
                day15.Execute();
                break;

            case "16":
                Day16 day16 = new Day16();
                day16.Execute();
                break;

            case "17":
                Day17 day17 = new Day17();
                day17.Execute();
                break;

            case "18":
                Day18 day18 = new Day18();
                day18.Execute();
                break;

            case "19":
                Day19 day19 = new Day19();
                day19.Execute();
                break;

            case "20":
                Day20 day20 = new Day20();
                day20.Execute();
                break;

            case "21":
                Day21 day21 = new Day21();
                day21.Execute();
                break;

            case "22":
                Day22 day22 = new Day22();
                day22.Execute();
                break;

            case "23":
                Day23 day23 = new Day23();
                day23.Execute();
                break;

            case "24":
                Day24 day24 = new Day24();
                day24.Execute();
                break;

            case "25":
                Day25 day25 = new Day25();
                day25.Execute();
                break;

            case "q":
            case "Q":
                finish = true;
                break;

            default:
                Console.WriteLine("Incorrect option. Try again.");
                break;
            }
            return(finish);
        }
Пример #2
0
        static void Main()
        {
            Day11 day = new Day11();

            day.SolveDay();
        }