summary refs log tree commit diff stats
path: root/generator/generator.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-01-06 18:53:42 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2024-01-06 18:53:42 -0500
commit15d2ad6dd644fd958a5d30ed56d500b8e9d9013a (patch)
tree87fa777f51c6595d1094f52496067e22519a184f /generator/generator.h
parent335fe2a98620ba9d01e3dacb461596a16b475b89 (diff)
downloadlingo-randomizer-15d2ad6dd644fd958a5d30ed56d500b8e9d9013a.tar.gz
lingo-randomizer-15d2ad6dd644fd958a5d30ed56d500b8e9d9013a.tar.bz2
lingo-randomizer-15d2ad6dd644fd958a5d30ed56d500b8e9d9013a.zip
Combo generation
Diffstat (limited to 'generator/generator.h')
-rw-r--r--generator/generator.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/generator/generator.h b/generator/generator.h index ea30bd9..cf304ea 100644 --- a/generator/generator.h +++ b/generator/generator.h
@@ -61,6 +61,9 @@ class generator {
61 void AddPronunciationToAnaphoneSet(size_t pronunciation_id, 61 void AddPronunciationToAnaphoneSet(size_t pronunciation_id,
62 const std::string& sorted_phonemes); 62 const std::string& sorted_phonemes);
63 63
64 void FindComboPuzzles(std::string text, PuzzleType left_type,
65 PuzzleType right_type);
66
64 // Input 67 // Input
65 68
66 std::string agidPath_; 69 std::string agidPath_;
@@ -88,6 +91,7 @@ class generator {
88 struct Form { 91 struct Form {
89 size_t id; 92 size_t id;
90 std::string text; 93 std::string text;
94 bool is_base_form = false;
91 std::vector<size_t> word_ids; 95 std::vector<size_t> word_ids;
92 std::vector<size_t> pronunciation_ids; 96 std::vector<size_t> pronunciation_ids;
93 std::optional<size_t> anagram_set_id; 97 std::optional<size_t> anagram_set_id;
@@ -127,6 +131,10 @@ class generator {
127 std::unordered_map<int, size_t> synset_by_wnid_; 131 std::unordered_map<int, size_t> synset_by_wnid_;
128 132
129 std::map<int, size_t> wanderlust_; 133 std::map<int, size_t> wanderlust_;
134
135 std::map<PuzzleType,
136 std::map<PuzzleType, std::vector<std::tuple<int, int, int>>>>
137 combos_;
130}; 138};
131 139
132#endif /* end of include guard: GENERATOR_H_D5C6A724 */ \ No newline at end of file 140#endif /* end of include guard: GENERATOR_H_D5C6A724 */ \ No newline at end of file