Пример #1
0
        public static void Run()
        {
            var        ordinaryGame = new OrdinaryMazeGame();
            GameEngine engine       = new GameEngine(ordinaryGame);

            Console.WriteLine("Game's on");

            engine.Start();
            var magicMazeGame = new MagicMazeGame();

            Console.WriteLine("SWITCHING TO MAGIC MODE");
            engine.Switch(magicMazeGame);
        }
Пример #2
0
        public static void Run()
        {
            var ordinaryGame = new OrdinaryMazeGame();
            GameEngine engine = new GameEngine(ordinaryGame);

            Console.WriteLine("Game's on");

            engine.Start();
            var magicMazeGame = new MagicMazeGame();

            Console.WriteLine("SWITCHING TO MAGIC MODE");
            engine.Switch(magicMazeGame);
        }