TODO finish this

This commit is contained in:
szabomarton
2024-04-17 12:10:58 +02:00
parent da939961c7
commit 9aedd22204
10 changed files with 13 additions and 13 deletions

View File

@@ -46,6 +46,7 @@ namespace WindowsFormsApp1
{
Data.charfound.Add(guess);
Data.charfound.Sort();
label1.Text = labelTextChange(label1.Text);
}
if (Samelist(Data.charfound, Data.wordchar))
@@ -122,20 +123,9 @@ namespace WindowsFormsApp1
}
public static void labelTextChange()
public static string labelTextChange(string temp)
{
char[] text = new char[Data.word.Count()];
for (int i = 0; i < Data.word.Count(); i++)
{
for (int j = 0; j < Data.charfound.Count(); j++)
{
if (Data.charfound[j] == Data.wordchar[i])
{
text[i] = Data.charfound[j];
}
}
}
return temp;
}
}