public void Menu() { ConsoleHelper.OutputHeading(" Vinnys Game images "); string[] choices = new string[] { "Draw Scissors", "Draw Rock", "Draw Paper", "Draw Smile", "Thumb up", "Thumb down", "Quit" }; bool finished = false; do { switch (ConsoleHelper.SelectChoice(choices)) { case 1: Imager.DrawScissors(ConsoleHelper.InputInt(), ConsoleHelper.InputInt()); break; case 2: Imager.DrawRock(ConsoleHelper.InputInt(), ConsoleHelper.InputInt()); break; case 7: finished = true; break; } } while (!finished); }
private void DisplayChoice(GameChoices choice) { if (choice == GameChoices.Scissors) { GameImages.DrawScissors(10, 10); } }
public void DrawChoice(Choice choice) { ///choices that are offered switch (choice) { case Choice.Rock: GameImages.DrawRock(x, y); break; case Choice.Scissors: GameImages.DrawScissors(x, y); break; case Choice.Paper: GameImages.DrawPaper(x, y); break; } }