/// <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(); }
public static void TestChoices() { string [] choices = new string [] { "Miles to Feet", "Feet to Miles", "Quit" }; UserLib.GetChoice(choices); }