Ejemplo n.º 1
0
        /// <summary>
        /// StartGame method contains the whole game logic in the correct order to be played
        /// </summary>
        private void StartGame()
        {
            this.creator = new LabyrinthCreator();
            this.Player  = new Player();

            string userChoiceOfLabyrinth = string.Empty;

            userChoiceOfLabyrinth = this.menu.GetLabyrinthTypeFromUser();

            this.labyrinth = this.creator.Create(userChoiceOfLabyrinth);

            this.Player.ShowPlayer(this.labyrinth);

            this.renderer.Render(this.labyrinth);

            this.coordinates = this.command.ProcessCommands();

            this.GetGameLoop();
        }
 public static void LabyrinthCreatorClassInicialize(TestContext testContext)
 {
     creator = new LabyrinthCreator();
 }