Exemplo n.º 1
0
        public static void Main()
        {
            Random rnd = new Random();
            var    consoleInterface = new ConsoleInterface(ProgramName, GameHeight, GameWidth);
            var    consolePlayer    = new PlayerUI(new Player(0, Environment.MachineName + '-' + rnd.Next(999).ToString()), 8, GameWidth, 9);
            var    consoleManager   = new Manager(consoleInterface, consolePlayer);

            consoleManager.Start();
        }
Exemplo n.º 2
0
 public Manager(ConsoleInterface consoleInterface, PlayerUI consolePlayer)
 {
     this.consoleInterface = consoleInterface;
     this.consolePlayer    = consolePlayer;
 }