public string UpdateText() { string text = ""; foreach (char litera in Cuvant) { if (Char.IsLetter(litera)) { if (Incercari.Contains(litera)) { text += litera + " "; } else { text += "_ "; } } else { text += litera + " "; } } return(text); }
private bool ACastigat() { foreach (char c in Cuvant) { if (Char.IsLetter(c) && !Incercari.Contains(c)) { return(false); } } return(true); }