예제 #1
0
        public void GenerateRandom()
        {
            Word           word   = wordDictionary_m.GetRandomWord();
            SyllableBoxSet boxSet = new SyllableBoxSet(word);

            boxSets_m.Add(boxSet);
        }
예제 #2
0
        public void GenerateRandom(int syllableCount)
        {
            List <Word>    options = wordDictionary_m.GetWordsWithSyllableCount(syllableCount);
            Word           word    = options[rand_m.Next(options.Count)];
            SyllableBoxSet boxSet  = new SyllableBoxSet(word);

            boxSets_m.Add(boxSet);
        }
예제 #3
0
        public void Generate(string wordStr)
        {
            // if the word exists in the Dictionary, generate the blocks based off of this
            Word           word   = wordDictionary_m.GetWord(wordStr);
            SyllableBoxSet boxSet = new SyllableBoxSet(word);

            boxSets_m.Add(boxSet);
        }