//Compares the user input to the already guessed letters, and updates as necessary
//Check the guessed letters string to see if character has already been used.
namespace Console_Hangman
{
class Program
{
static void Main(string[] args)
{
// Displays the gamestart
Console.WriteLine("Welcome to Hangman, Let's Play.");
Console.WriteLine("Please Type Your Secret Word");
Console.ForegroundColor = ConsoleColor.Black;
string secretWord = Console.ReadLine();
string wordBoard = string.Empty;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Your secret Word is");
Console.Write("");
for (int length = 0; length < secretWord.Length; length++)
{
wordBoard = wordBoard + "_";
}
Console.WriteLine(wordBoard);
Console.WriteLine("");
Console.WriteLine("Enter a letter");
Console.ReadLine();
}
}
}