diff --git a/prove/Develop03/word.cs b/prove/Develop03/word.cs index 9206a50..1fe37f4 100644 --- a/prove/Develop03/word.cs +++ b/prove/Develop03/word.cs @@ -35,7 +35,16 @@ public string DisplayWord() // this method checks wether or not a word is hidden and what to display if that is true or not if(_isHidden) { - return "_"; + // this is a comment for the pull request. I used to just return a single underscore for each word + // I have now fixed it with this simple for loop that gets the word length and replaces the whole + // word with underscores + int numberOfLetters = _text.Length; + string placeholder = ""; + for(int i = 0; i < numberOfLetters; i++) + { + placeholder += "_"; + } + return placeholder; } else {