TODO finish this
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user