Beispiel #1
0
 public static void Main(string[] args)
 {
     var simpleRandomBoardFactory = new SimpleRandomBoardFactory();
     var consoleInterface = new ConsoleInterface();
     var game = new GameProcessor(simpleRandomBoardFactory, consoleInterface);
     game.Play();
     Environment.Exit(0);
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            var validator = new Validator();
            var game      = new Game();
            var ui        = new ConsoleInterface(game, validator);

            ui.Start();

            Console.WriteLine("Press any key to close...");
            Console.ReadKey();
        }