Пример #1
0
        private bool HasWordBeenGuessed()
        {
            // filter out spaces and uppercase it for comparison
            var word = WordToGuess.Replace(" ", "").ToUpper();

            foreach (var letter in word)
            {
                if (!GuessedLetters.Contains(letter.ToString()))
                {
                    return(false);
                }
            }

            return(true);
        }