public void GenerateRandom() { Word word = wordDictionary_m.GetRandomWord(); SyllableBoxSet boxSet = new SyllableBoxSet(word); boxSets_m.Add(boxSet); }
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); }
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); }