Пример #1
0
        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);
        }
Пример #2
0
 private void DisplayChoice(GameChoices choice)
 {
     if (choice == GameChoices.Scissors)
     {
         GameImages.DrawScissors(10, 10);
     }
 }
Пример #3
0
        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;
            }
        }