private void button4_Click(object sender, EventArgs e) { WordBuilder builder = new WordBuilder(3); WordListBox.Items.Clear(); foreach (var start in builder.StartingSounds) { foreach (var end in builder.EndingSounds) { string checkWord = start + end; if (!builder.IsValidWord(checkWord) && GameUtils.CheckDictionaryWord(checkWord)) { WordListBox.Items.Add(checkWord); } } } }
private void button1_Click(object sender, EventArgs e) { WordBuilder builder = new WordBuilder(3); WordListBox.Items.Clear(); array_name = "all_valid_words"; foreach (var start in builder.StartingSounds) { foreach (var end in builder.EndingSounds) { string checkWord = start + end; if (builder.IsValidWord(checkWord)) { WordListBox.Items.Add(checkWord); } } } }
private void button8_Click(object sender, EventArgs e) { WordBuilder builder = new WordBuilder(3); WordListBox.Items.Clear(); array_name = "all_suffixes"; foreach (var end in builder.EndingSounds) { WordListBox.Items.Add(end); } }
private void button7_Click(object sender, EventArgs e) { WordBuilder builder = new WordBuilder(3); WordListBox.Items.Clear(); array_name = "all_prefixes"; foreach (var start in builder.StartingSounds) { WordListBox.Items.Add(start); } }