Пример #1
0
        public static void Run()
        {
            Game2.Run();
            Console.ReadLine();
            Game game = new Game("First game", 333);

            while (true)
            {
                var c = Console.Read();
                switch (c)
                {
                case 's':
                    game.Start();
                    break;

                case 'e':
                    game.Stop();
                    break;

                case 'p':
                    game.Suspend();
                    break;

                case 'r':
                    game.Resume();
                    break;

                default:
                    break;
                }
            }
        }
Пример #2
0
        public static void Run()
        {
            Game2 g = new Game2();

            g.Execute();
        }