示例#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);
                    }
                }
            }

        }
示例#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);
                    }
                }
            }
        }
示例#3
0
        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);
            }

        }
示例#4
0
        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);
            }

        }