static void Main(string[] args) { List<string> mainChoices = new List<string>(new[] { "1: New One Player Game", "2: New Two Player Game", "3: Display High Scores", "4: Quit" }); List<string> playerChoices = new List<string>(new[] { "1: Rock", "2: Spock", "3: Paper", "4: Lizard", "5: Sissors" }); List<string> gameOverChoices = new List<string>(new[] { "1: Play Again", "2: Start Over", "3: Quit" }); Menu mainMenu = new Menu("What would you like to do", mainChoices); Menu playerOneMenu = new Menu("Player One, What do you choose", playerChoices); Menu playerTwoMenu = new Menu("Player Two, What do you choose", playerChoices); Menu gameOverMenu = new Menu("What would you like to do", gameOverChoices); Display display = new Display(mainMenu, playerOneMenu, playerTwoMenu, gameOverMenu); display.DisplayMenus(); }
public Display(Menu mainMenu, Menu playeOneMenu, Menu playeTwoMenu, Menu gameOvMenu) { this.mainMenu = mainMenu; this.playerOneMenu = playeOneMenu; this.playerTwoMenu = playeTwoMenu; this.gameOverMenu = gameOvMenu; }