using System.Collections;
public static void Main(string[] args)
string[] computerHints = new string[3];
computerHints[0] = "COWRITER";
computerHints[1] = "CHAPITER";
computerHints[2] = "CONFUTER";
string[] carHints = new string[3];
string[] keyboardHints = new string[3];
keyboardHints[0] = "DOWNWARD";
keyboardHints[1] = "VANGUARD";
keyboardHints[2] = "CUPBOARD";
string[] printerHints = new string[3];
printerHints[0] = "BLASTER";
printerHints[1] = "ABORTER";
printerHints[2] = "COMPTER";
string[] walletHints = new string[3];
walletHints[0] = "GOGLET";
walletHints[1] = "GOBLET";
walletHints[2] = "MALLET";
bool printerhint1 = false;
bool printerhint2 = false;
bool printerhint3 = false;
bool wallethint1 = false;
bool wallethint2 = false;
bool wallethint3 = false;
ArrayList words = new ArrayList();
Console.WriteLine("Simple Word Guessing Game");
Console.WriteLine("Type 1 to use HINT (NOTE: THERE ARE ONLY 3 HINTS FOR EACH QUESTION)");
StringBuilder strQues = new StringBuilder("A _____");
Console.WriteLine("You have" + " " + hints + " " + "hint(s) left");
Console.WriteLine("You have" + " " + playerLife + " " + "life points left\n");
Console.WriteLine(strQues.Append("is a digital electronic machine that can be programmed to carry out sequences of arithmetic or logical operations automatically."));
userAnswer = Console.ReadLine().ToLower();
if (userAnswer.Equals(words[0]))
strQues = new StringBuilder("A _____");
if (userAnswer.Equals("1") && hints > 0)
Console.WriteLine("Generated Hint\n");
strQues = new StringBuilder("A");
Console.WriteLine(strQues.Append(" " + computerHints[0] + " " + "is a digital electronic machine that can be programmed to carry out sequences of arithmetic or logical operations automatically.\n"));
strQues = new StringBuilder("A");
else if (comhint1 && !comhint2)
Console.WriteLine(strQues.Append(" " + computerHints[1] + " " + "is a digital electronic machine that can be programmed to carry out sequences of arithmetic or logical operations automatically.\n"));
strQues = new StringBuilder("A");
else if (comhint1 && comhint2 & !comhint3)
Console.WriteLine(strQues.Append(" " + computerHints[2] + " " + "is a digital electronic machine that can be programmed to carry out sequences of arithmetic or logical operations automatically.\n"));
strQues = new StringBuilder("A");
Console.WriteLine("No more hints available for this question");
if (userAnswer.Equals("1") && hints == 0)
Console.WriteLine("No more hints available");
if (!userAnswer.Equals(words[0]) && !userAnswer.Equals("1"))
strQues = new StringBuilder("A _____");
Console.WriteLine(strQues.Append("is a wheeled motor vehicle used for transportation."));
userAnswer = Console.ReadLine().ToLower();
if (userAnswer.Equals(words[1]))
strQues = new StringBuilder("A _____");
if (userAnswer.Equals("1") && hints > 0)
Console.WriteLine("Generated Hint\n");
strQues = new StringBuilder("A");
Console.WriteLine(strQues.Append(" " + carHints[0] + " " + "is a wheeled motor vehicle used for transportation.\n"));
strQues = new StringBuilder("A");
else if (carhint1 && !comhint2)
Console.WriteLine(strQues.Append(" " + carHints[1] + " " + "is a wheeled motor vehicle used for transportation.\n"));
strQues = new StringBuilder("A");
else if (carhint1 && carhint2 & !carhint3)
Console.WriteLine(strQues.Append(" " + carHints[2] + " " + "is a wheeled motor vehicle used for transportation.\n"));
strQues = new StringBuilder("A");
Console.WriteLine("No more hints available for this question");
if (userAnswer.Equals("1") && hints == 0)
Console.WriteLine("No more hints available");
if (!userAnswer.Equals(words[1]) && !userAnswer.Equals("1"))
strQues = new StringBuilder("A _____");
if (ques1 && ques2 && !ques3)
Console.WriteLine(strQues.Append("is a peripheral input device modeled after the typewriter."));
userAnswer = Console.ReadLine().ToLower();
if (userAnswer.Equals(words[2]))
strQues = new StringBuilder("A _____");
if (userAnswer.Equals("1") && hints > 0)
Console.WriteLine("Generated Hint\n");
strQues = new StringBuilder("A");
Console.WriteLine(strQues.Append(" " + keyboardHints[0] + " " + "is a peripheral input device modeled after the typewriter.\n"));
strQues = new StringBuilder("A");
else if (keyhint1 && !keyhint2)
Console.WriteLine(strQues.Append(" " + keyboardHints[1] + " " + "is a peripheral input device modeled after the typewriter.\n"));
strQues = new StringBuilder("A");
else if (keyhint1 && keyhint2 & !keyhint3)
Console.WriteLine(strQues.Append(" " + keyboardHints[2] + " " + "is a peripheral input device modeled after the typewriter.\n"));
strQues = new StringBuilder("A");
Console.WriteLine("No more hints available for this question");
if (userAnswer.Equals("1") && hints == 0)
Console.WriteLine("No more hints available");
if (!userAnswer.Equals(words[2]) && !userAnswer.Equals("1"))
strQues = new StringBuilder("A _____");
if (ques1 && ques2 && ques3 && !ques4)
Console.WriteLine(strQues.Append("is a peripheral machine which makes a persistent representation of graphics or text, usually on paper."));
userAnswer = Console.ReadLine().ToLower();
if (userAnswer.Equals(words[3]))
strQues = new StringBuilder("A _____");
if (userAnswer.Equals("1") && hints > 0)
Console.WriteLine("Generated Hint\n");
strQues = new StringBuilder("A");
Console.WriteLine(strQues.Append(" " + printerHints[0] + " " + "is a peripheral machine which makes a persistent representation of graphics or text, usually on paper.\n"));
strQues = new StringBuilder("A");
else if (printerhint1 && !printerhint2)
Console.WriteLine(strQues.Append(" " + printerHints[1] + " " + "is a peripheral machine which makes a persistent representation of graphics or text, usually on paper.\n"));
strQues = new StringBuilder("A");
else if (printerhint1 && printerhint2 & !printerhint3)
Console.WriteLine(strQues.Append(" " + printerHints[2] + " " + "is a peripheral machine which makes a persistent representation of graphics or text, usually on paper.\n"));
strQues = new StringBuilder("A");
Console.WriteLine("No more hints available for this question");
if (userAnswer.Equals("1") && hints == 0)
Console.WriteLine("No more hints available");
if (!userAnswer.Equals(words[3]) && !userAnswer.Equals("1"))
strQues = new StringBuilder("A _____");
if (ques1 && ques2 && ques3 && ques4 && !ques5)
Console.WriteLine(strQues.Append("is a flat case or pouch that can be used to carry such small personal items as paper currency, credit cards, and identification documents."));
userAnswer = Console.ReadLine().ToLower();
if (userAnswer.Equals(words[4]))
strQues = new StringBuilder("A _____");
if (userAnswer.Equals("1") && hints > 0)
Console.WriteLine("Generated Hint\n");
strQues = new StringBuilder("A");
Console.WriteLine(strQues.Append(" " + walletHints[0] + " " + "is a flat case or pouch that can be used to carry such small personal items as paper currency, credit cards, and identification documents.\n"));
strQues = new StringBuilder("A");
else if (wallethint1 && !wallethint2)
Console.WriteLine(strQues.Append(" " + walletHints[1] + " " + "is a flat case or pouch that can be used to carry such small personal items as paper currency, credit cards, and identification documents.\n"));
strQues = new StringBuilder("A");
else if (wallethint1 && wallethint2 & !wallethint3)
Console.WriteLine(strQues.Append(" " + walletHints[2] + " " + "is a flat case or pouch that can be used to carry such small personal items as paper currency, credit cards, and identification documents.\n"));
strQues = new StringBuilder("A");
Console.WriteLine("No more hints available for this question");
if (userAnswer.Equals("1") && hints == 0)
Console.WriteLine("No more hints available");
if (!userAnswer.Equals(words[4]) && !userAnswer.Equals("1"))
strQues = new StringBuilder("A _____");
if (ques1 && ques2 && ques3 && ques4 && ques5)
decimal accuracy = (5 * 100) / attempts;
Console.WriteLine("Congratulations! You got" + " " + accuracy + "%" + " " + "accuracy");
Console.WriteLine("Game Over!");