示例#1
0
        /// <summary>
        /// *******************************************************
        /// This method will Get the Player's Choice
        /// *******************************************************
        /// </summary>
        private static void GetPlayerChoice()
        {
            Console.Clear();
            UserLib.WriteTitle(Title);

            Console.WriteLine("Turn no " + turn + " of " + MAXN_TURNS);

            string[] choices  = new string[] { Game.SCISSORS, Game.PAPER, Game.STONE };
            int      choiceNo = UserLib.GetChoice(choices);

            Game.PlayerChoice = choices[choiceNo - 1];

            Console.WriteLine();
        }
示例#2
0
 public static void TestChoices()
 {
     string [] choices = new string [] { "Miles to Feet", "Feet to Miles", "Quit" };
     UserLib.GetChoice(choices);
 }