Beispiel #1
0
        public void Run()
        {
            string input = ConsoleReader.Read();

            while (true)
            {
                if (string.IsNullOrEmpty(input))
                {
                    this.EndGame();
                    return;
                }

                ConsoleWriter.Write(commandInterpreter.Interprete(input));

                if (this.dungeonMaster.IsGameOver())
                {
                    this.EndGame();
                    return;
                }

                input = ConsoleReader.Read();
            }
        }