using System.Collections;
namespace WordGuessingGame {
public static void Main() {
StringBuilder newString = new StringBuilder();
StringBuilder newString1 = new StringBuilder();
ArrayList wordsToGuess = new ArrayList();
Random random = new Random();
newString.Append('~', 6);
newString.Append(" WELCOME TO WORD GUESSING GAME ");
newString.Append('~', 6);
Console.WriteLine(newString);
Console.WriteLine("\nHow many letters you want to guess? (pick 5 or 9)");
int pick = Convert.ToInt32(Console.ReadLine());
wordsToGuess.AddRange(new ArrayList(){""});
Console.WriteLine("\nGuess the word _ n v _ _ i _ l e");
string guess = Console.ReadLine();
if (wordsToGuess.IndexOf(guess) > -1){
Console.Write("Correct, Thanks for playing logic guessing game!");
newString1.Append(wordsToGuess[random.Next(wordsToGuess.Count)]).ToString();
Console.Write("Wrong! Guess attempts {0}", wrongGuess);
else if (pick.Equals(5)) {
wordsToGuess.AddRange(new ArrayList(){""});
Console.WriteLine("\nGuess the word s _ _ c _");
string guess = Console.ReadLine();
if (wordsToGuess.IndexOf(guess) > -1){
Console.Write("Correct, Thanks for playing logic guessing game!");
else if (wrongGuess == 0){
Console.WriteLine("Game Over..");
Console.Write("Wrong! Guess attempts {0}", wrongGuess);
Console.WriteLine("Pick 5 or 9 only");