Exemplo n.º 1
0
        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);
                    }
                }
            }

        }
Exemplo n.º 2
0
        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);
                    }
                }
            }
        }