static void DisplayMenu()
Console.WriteLine("Welcome to the guessing program menu - choose you option");
Console.WriteLine("1 - Change the secret word");
Console.WriteLine("2 - Make a guess");
Console.WriteLine("3 - Quit");
static string ChangeWord()
Console.WriteLine("Please enter the new secret word");
string newsecretword = Console.ReadLine();
static void GuessWord(string word)
Console.WriteLine("What is your guess at the secret word");
string guess = Console.ReadLine();
Console.WriteLine("Well done, you have successfully guessed the secret word");
Console.WriteLine("Sorry, you have not guessed the secret word");
Console.WriteLine("Bye");
public static void Main()
string secretword = "Computer";
menuoption = int.Parse(Console.ReadLine());
secretword = ChangeWord();
Console.WriteLine("Invalid menu option, please enter a number between 1 and 3");
} while (menuoption != 3);