Example #1
0
        public static void Main()
        {
            IInterface userInterface = new ConsoleInterface();
            IRenderer renderer = new ConsoleRenderer();
            IGameInitializationStrategy gameInitializationStrategy = new GameInitializationStrategy();
            Engine gameEngine = new Engine(renderer, userInterface, gameInitializationStrategy);

            gameEngine.Run();
        }
Example #2
0
        public static void Main()
        {
            IInterface userInterface = new ConsoleInterface();
            IRenderer  renderer      = new ConsoleRenderer();
            IGameInitializationStrategy gameInitializationStrategy = new GameInitializationStrategy();
            Engine gameEngine = new Engine(renderer, userInterface, gameInitializationStrategy);

            gameEngine.Run();
        }