title: Hangman Console Application
body: <p>I am currently working on a small project where I am creating a hangman game as a console application. Currently, I am having problems because I want to create an array for the word that is to be guessed. This word is not random and will always be the same. In this case, it is "miller". I want to create an array for "miller" and have a loop to display each letter in the word character array. When the letter is guessed correctly, I want to display the correct letter and if not display the special character "*" in its stead. So, for instance, the word is "miller" and would be first displayed as "******". When the user guessed a letter correctly, one special character would become the correctly guessed letter. So, say the user guesses "i"...the displayed word would then be "*i****". Say he guesses "l" next...the displayed word would then be "*ill**". How would I go about doing this? This is my code so far... I've created already attempted to create an array for this. Sorry if this seems trivial, but I am new to programming and just need some guidance and help.</p>
  
  <p>TLDR;
  I need help with this code. I am trying to make an array containing 'miller' and I want to be able to call on that array when the user guesses a letter correct changing the display of a special character "*" to whatever the letter he guesses correctly is. I am told going about a for loop is the best route for this, but I'm kind of lost. Help?</p>
  
  <pre><code>static void Main(string[] args)
      {            
          char[] guessed = new char[26];
  
          char[] word = "miller".ToCharArray();
  
          char guess;
  
          int score = 0, index = 0;
          Console.WriteLine("******");
  
          for (int i = 0; i &lt; 10; i++)
          {
  
              Console.Write("Please enter a letter to guess: ");
  
              guess = char.Parse(Console.ReadLine());
  
              if (guess == l1 || guess == l2 || guess == l3 || guess == l4 || guess == l5 || guess == l6)
              {
                  Console.WriteLine("Your guess is correct.");
                  guessed[index] = guess;
                  index++;
              }
              else
              {
                  Console.WriteLine("Your guess is incorrect.");
                  score++;
              }
  
  
  
          }
  
          Console.WriteLine("Your score is " + score);
  
          Console.ReadLine();
  
      }
  }
  </code></pre>
  
  <p>}</p>