Esempio n. 1
0
        /// <summary>
        /// This method is an entry point.
        /// </summary>
        /// <param name="args">Arguments for entry point.</param>
        private static void Main(string[] args)
        {
            ISettingsProvider simpleSettingsProvider = new SimpleSettingsProvider();
            IPhraseProvider   simplePhraseProvider   = new SimplePhraseProvider(simpleSettingsProvider.GetSettings().CurrentLanguage);
            IBoard            consoleBoard           = new ConsoleBoard(simpleSettingsProvider.GetSettings());
            GameMenu          gm = new GameMenu(consoleBoard, simplePhraseProvider);
            Game g = new Game(consoleBoard, gm);

            g.Play();
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            // Initializing game components
            SimpleRandomIntArrayGenerator simpleRandomLongArrayGenerator = new SimpleRandomIntArrayGenerator();
            SimpleStackDataStorage <int>  simpleStackDataStorage         = new SimpleStackDataStorage <int>();
            GameConsole            gameConsole            = new GameConsole();
            SimpleSettingsProvider simpleSettingsProvider = new SimpleSettingsProvider();
            SimplePhraseProvider   simplePhraseProvider   = new SimplePhraseProvider(simpleSettingsProvider.GetSettings().language);

            Game game = new Game(simpleRandomLongArrayGenerator, simpleStackDataStorage, gameConsole, simpleSettingsProvider, simplePhraseProvider);

            game.Play();
        }