diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-12-02 18:04:59 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-12-02 18:04:59 -0500 |
commit | 123887d73dbab74f784e6ca41a6b33ce8c5c5e52 (patch) | |
tree | 86ab1976611aaa7d669bfe2f0c8fae2f1f7cddeb /generator/generator.h | |
parent | 17778ac3ab8598eb3d43f562a092b9aa7c0a1a42 (diff) | |
download | lingo-randomizer-123887d73dbab74f784e6ca41a6b33ce8c5c5e52.tar.gz lingo-randomizer-123887d73dbab74f784e6ca41a6b33ce8c5c5e52.tar.bz2 lingo-randomizer-123887d73dbab74f784e6ca41a6b33ce8c5c5e52.zip |
Add black bottom and double black bottom
Diffstat (limited to 'generator/generator.h')
-rw-r--r-- | generator/generator.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generator/generator.h b/generator/generator.h index 923fc17..fc66789 100644 --- a/generator/generator.h +++ b/generator/generator.h | |||
@@ -2,10 +2,12 @@ | |||
2 | #define GENERATOR_H_D5C6A724 | 2 | #define GENERATOR_H_D5C6A724 |
3 | 3 | ||
4 | #include <filesystem> | 4 | #include <filesystem> |
5 | #include <map> | ||
5 | #include <optional> | 6 | #include <optional> |
6 | #include <set> | 7 | #include <set> |
7 | #include <string> | 8 | #include <string> |
8 | #include <unordered_map> | 9 | #include <unordered_map> |
10 | #include <utility> | ||
9 | #include <vector> | 11 | #include <vector> |
10 | 12 | ||
11 | enum PuzzleType { | 13 | enum PuzzleType { |
@@ -15,6 +17,8 @@ enum PuzzleType { | |||
15 | kYellowMiddle = 3, | 17 | kYellowMiddle = 3, |
16 | kBlackTop = 4, | 18 | kBlackTop = 4, |
17 | kBlackMiddle = 5, | 19 | kBlackMiddle = 5, |
20 | kBlackBottom = 6, | ||
21 | kDoubleBlackBottom = 7, | ||
18 | }; | 22 | }; |
19 | 23 | ||
20 | class generator { | 24 | class generator { |
@@ -107,7 +111,8 @@ class generator { | |||
107 | std::unordered_map<std::string, size_t> anagram_set_by_sorted_letters_; | 111 | std::unordered_map<std::string, size_t> anagram_set_by_sorted_letters_; |
108 | 112 | ||
109 | std::vector<Word> words_; | 113 | std::vector<Word> words_; |
110 | std::unordered_map<std::string, size_t> word_by_base_; | 114 | std::unordered_map<std::string, std::vector<size_t>> words_by_base_; |
115 | std::map<std::pair<int, int>, size_t> word_by_wnid_and_wnum_; | ||
111 | 116 | ||
112 | std::vector<std::vector<size_t>> synsets_; | 117 | std::vector<std::vector<size_t>> synsets_; |
113 | std::unordered_map<int, size_t> synset_by_wnid_; | 118 | std::unordered_map<int, size_t> synset_by_wnid_; |