Esempio n. 1
0
        private static string DisplayWordResult(Mot mot)
        {
            string result = "";

            for (int i = 0; i < mot.Length; i++)
            {
                if (lettresEntrees.Contains(mot.GetChar(i).ToString()))
                {
                    result += mot.GetChar(i);
                }
                else
                {
                    result += "-";
                }
            }
            return(result);
        }