diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-12-02 11:37:45 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-12-02 11:37:45 -0500 |
commit | 691e37d46f55c36d85f82d261f002bb03b82f11b (patch) | |
tree | 1bde459465b28c054571d403bab384f41fa1610f /main.cpp | |
parent | 4bbebe3f6312d06c7a426cfabc55e9a14b4f58bf (diff) | |
download | lingo-randomizer-691e37d46f55c36d85f82d261f002bb03b82f11b.tar.gz lingo-randomizer-691e37d46f55c36d85f82d261f002bb03b82f11b.tar.bz2 lingo-randomizer-691e37d46f55c36d85f82d261f002bb03b82f11b.zip |
Cleared out old stuff
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 669 |
1 files changed, 0 insertions, 669 deletions
diff --git a/main.cpp b/main.cpp deleted file mode 100644 index ba40def..0000000 --- a/main.cpp +++ /dev/null | |||
@@ -1,669 +0,0 @@ | |||
1 | #include <random> | ||
2 | #include <fstream> | ||
3 | #include <iostream> | ||
4 | #include <string> | ||
5 | #include "generator.h" | ||
6 | |||
7 | constexpr const char* kVersionStr = "0.0.1"; | ||
8 | |||
9 | class Randomizer { | ||
10 | public: | ||
11 | |||
12 | explicit Randomizer(unsigned int seed) : seed_(seed), gen_(seed) {} | ||
13 | |||
14 | void Run() { | ||
15 | // Entry room | ||
16 | gen_.GenerateStaticPanel("Panel_hi_hi", "hewwo"); | ||
17 | gen_.GenerateStaticPanel("Panel_type_type", "version"); | ||
18 | gen_.GenerateStaticPanel("Panel_this_this", kVersionStr); | ||
19 | gen_.GenerateStaticPanel("Panel_write_write", "normal"); | ||
20 | gen_.GenerateStaticPanel("Panel_same_same", std::to_string(seed_)); | ||
21 | gen_.GenerateSinglePanel("Panel_hidden_hidden", kMiddle, kWhite, {.save_for_later = true}); | ||
22 | gen_.GenerateStaticPanel("Panel_hi_high", "goode", "good"); | ||
23 | gen_.GenerateStaticPanel("Panel_low_low", "serendipity", "luck"); | ||
24 | gen_.GenerateSinglePanel("Panel_forward_forward", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20, .save_for_later = true, .must_be_broad = true}); | ||
25 | gen_.GenerateSinglePanel("Panel_between_between", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20, .save_for_later = true, .must_be_broad = true}); | ||
26 | gen_.GenerateSinglePanel("Panel_backward_backward", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20, .save_for_later = true, .must_be_broad = true}); | ||
27 | gen_.GenerateSinglePanel("Panel_secret_secret", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20, .save_for_later = true, .must_be_broad = true}); | ||
28 | |||
29 | // The Agreeable | ||
30 | gen_.GenerateSinglePanel("Panel_close_open", kBottom, kBlack, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "agreeable"}); | ||
31 | gen_.GenerateSinglePanel("Panel_retool_looter", kMiddle, kBlack, {.save_for_later = true, .unique_pool = "agreeable", .palindrome = kRejectPalindrome}); | ||
32 | gen_.GenerateSinglePanel("Panel_drawer_reward", kMiddle, kBlack, {.save_for_later = true, .unique_pool = "agreeable", .palindrome = kRejectPalindrome}); | ||
33 | gen_.GenerateSinglePanel("Panel_read_write", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true, .unique_pool = "agreeable"}); | ||
34 | gen_.GenerateSinglePanel("Panel_different_same", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true, .unique_pool = "agreeable"}); | ||
35 | gen_.GenerateSinglePanel("Panel_bye_hi", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true, .unique_pool = "agreeable"}); | ||
36 | gen_.GenerateSinglePanel("Panel_low_high", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true, .unique_pool = "agreeable"}); | ||
37 | gen_.GenerateSinglePanel("Panel_alive_dead", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true, .unique_pool = "agreeable"}); | ||
38 | gen_.GenerateSinglePanel("Panel_that_this", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true, .unique_pool = "agreeable"}); | ||
39 | gen_.GenerateSinglePanel("Panel_stressed_desserts", kMiddle, kBlack, {.unique_pool = "agreeable", .palindrome = kRejectPalindrome, .save_for_later = true}); | ||
40 | gen_.GenerateSinglePanel("Panel_star_rats", kMiddle, kBlack, {.unique_pool = "agreeable", .palindrome = kRejectPalindrome, .save_for_later = true}); | ||
41 | gen_.GenerateSinglePanel("Panel_tame_mate", kTop, kBlack, {.unique_pool = "agreeable", .save_for_later = true}); | ||
42 | gen_.GenerateSinglePanel("Panel_cat_tack", kTop, kBlack, {.unique_pool = "agreeable", .save_for_later = true}); | ||
43 | gen_.GeneratePairedPanels("Panel_leaf_feel", "Panel_feel_leaf", kTop, kBlack, {.obscure_hint = true, .save_for_later = true}); | ||
44 | gen_.GeneratePairedPanels("Panel_warts_straw", "Panel_straw_warts", kMiddle, kBlack, {.obscure_hint = true, .save_for_later = true, .palindrome = kRejectPalindrome}); | ||
45 | gen_.GeneratePairedPanels("Panel_near_far", "Panel_far_near", kBottom, kBlack, {.obscure_hint = true, .save_for_later = true}); | ||
46 | // Panel_left_wrong: left? wrong! | ||
47 | gen_.GenerateSinglePanel("Panel_black_white", kBottom, kBlack, {.max_answer_len = 7, .save_for_later = true}); | ||
48 | gen_.GeneratePairedPanels("Panel_left_right", "Panel_right_left", kBottom, kBlack, {.obscure_hint = true, .save_for_later = true}); | ||
49 | |||
50 | // The Seeker | ||
51 | gen_.GenerateSinglePanel("Panel_entrance_entrance", kMiddle, kWhite, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker", .must_be_broad = true}); | ||
52 | gen_.GenerateSinglePanel("Panel_bear_bear", kMiddle, kWhite, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker", .must_be_broad = true}); | ||
53 | gen_.GenerateDoublePanel("Panel_mine_mine", "Panel_mine_mine_2", kMiddle, kWhite, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker", .must_be_broad = true}); | ||
54 | gen_.GenerateSinglePanel("Panel_bow_bow", kMiddle, kWhite, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker", .must_be_broad = true}); | ||
55 | gen_.GenerateSinglePanel("Panel_does_does", kMiddle, kWhite, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker", .must_be_broad = true}); | ||
56 | gen_.GenerateDoublePanel("Panel_mobile_mobile", "Panel_mobile_mobile_2", kMiddle, kWhite, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker", .must_be_broad = true}); | ||
57 | gen_.GeneratePanelStack("Panel_desert_dessert", kWhite, "Panel_desert_desert", kWhite, "", {}, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker"}); | ||
58 | gen_.GeneratePanelStack("Panel_sow_so", kWhite, "Panel_sow_sow", kWhite, "", {}, {.obscure_hint = true, .save_for_later = true, .unique_pool = "seeker"}); | ||
59 | gen_.GenerateDoublePanel("Panel_two_to", "Panel_two_too", kTop, kWhite, {.save_for_later = true, .unique_pool = "seeker"}); | ||
60 | gen_.GenerateSinglePanel("Panel_write_right", kTop, kWhite, {.save_for_later = true, .unique_pool = "seeker"}); | ||
61 | gen_.GenerateSinglePanel("Panel_you_ewe", kTop, kWhite, {.save_for_later = true, .unique_pool = "seeker"}); | ||
62 | gen_.GenerateDoublePanel("Panel_not_knot", "Panel_not_naught", kTop, kWhite, {.save_for_later = true, .unique_pool = "seeker"}); | ||
63 | gen_.GenerateSinglePanel("Panel_bear_bare", kTop, kWhite, {.save_for_later = true, .unique_pool = "seeker"}); | ||
64 | |||
65 | // The Tenacious | ||
66 | gen_.GenerateSinglePanel("Panel_slaughter_laughter", kMiddle, kRed, {.unique_pool = "tenacious", .save_for_later = true}); | ||
67 | gen_.GenerateSinglePanel("Panel_dread_dead", kMiddle, kRed, {.unique_pool = "tenacious", .save_for_later = true}); | ||
68 | gen_.GenerateSinglePanel("Panel_massacred_sacred", kMiddle, kRed, {.unique_pool = "tenacious", .save_for_later = true}); | ||
69 | gen_.GenerateSinglePanel("Panel_decay_day", kMiddle, kRed, {.unique_pool = "tenacious", .save_for_later = true}); | ||
70 | gen_.GeneratePairedPanels("Panel_solos_solos", "Panel_solos_solos_2", kMiddle, kBlack, {.palindrome = kForcePalindrome}); | ||
71 | gen_.GeneratePairedPanels("Panel_racecar_racecar", "Panel_racecar_racecar_2", kMiddle, kBlack, {.palindrome = kForcePalindrome}); | ||
72 | gen_.GeneratePairedPanels("Panel_level_level", "Panel_level_level_2", kMiddle, kBlack, {.palindrome = kForcePalindrome}); | ||
73 | |||
74 | // The Traveled - HI | ||
75 | gen_.GenerateSinglePanel("Panel_hello_hi", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
76 | |||
77 | // The Discerning | ||
78 | gen_.GenerateSinglePanel("Panel_nope_open", kMiddle, kYellow, {.max_answer_len = 4, .unique_pool = "discerning"}); | ||
79 | gen_.GenerateSinglePanel("Panel_hits_this", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
80 | gen_.GenerateDoublePanel("Panel_warred_drawer", "Panel_redraw_drawer", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
81 | gen_.GenerateSinglePanel("Panel_adder_dread", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
82 | gen_.GenerateSinglePanel("Panel_laughters_slaughter", kMiddle, kYellow, {.save_for_later = true, .unique_pool = "discerning"}); | ||
83 | gen_.GenerateDoublePanel("Panel_stone_notes", "Panel_onset_notes", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
84 | gen_.GenerateSinglePanel("Panel_rat_art", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
85 | gen_.GenerateSinglePanel("Panel_dusty_study", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
86 | gen_.GenerateDoublePanel("Panel_arts_star", "Panel_tsar_star", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
87 | gen_.GenerateSinglePanel("Panel_state_taste", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
88 | gen_.GenerateSinglePanel("Panel_react_trace", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
89 | gen_.GenerateDoublePanel("Panel_dear_read", "Panel_dare_read", kMiddle, kYellow, {.save_for_later = true, .unique_pool = "discerning"}); | ||
90 | gen_.GenerateSinglePanel("Panel_seam_same", kMiddle, kYellow, {.max_answer_len = 6, .save_for_later = true, .unique_pool = "discerning"}); | ||
91 | |||
92 | // The Bold | ||
93 | gen_.GenerateSinglePanel("Panel_heartbreak_brake", kTop, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
94 | gen_.GenerateSinglePanel("Panel_airplane_plain", kTop, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
95 | gen_.GenerateSinglePanel("Panel_nightmare_knight", kTop, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
96 | gen_.GenerateSinglePanel("Panel_sign_sigh", kTop, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
97 | gen_.GenerateSinglePanel("Panel_unopened_open", kMiddle, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
98 | gen_.GenerateDoublePanel("Panel_undead_dead", "Panel_deadline_dead", kMiddle, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
99 | gen_.GenerateSinglePanel("Panel_sushi_hi", kMiddle, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
100 | gen_.GenerateSinglePanel("Panel_thistle_this", kMiddle, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
101 | gen_.GenerateDoublePanel("Panel_landmass_mass", "Panel_massacred_mass", kMiddle, kRed, {.save_for_later = true, .unique_pool = "bold"}); | ||
102 | gen_.GenerateDoublePanel("Panel_face_eye", "Panel_needle_eye", kBottom, kRed, {.reuse_solution = true, .unique_pool = "bold"}); | ||
103 | gen_.GenerateSinglePanel("Panel_foot_toe", kBottom, kRed, {.reuse_solution = true, .unique_pool = "bold"}); | ||
104 | gen_.GenerateDoublePanel("Panel_mouth_teeth", "Panel_saw_teeth", kBottom, kRed, {.reuse_solution = true, .unique_pool = "bold"}); | ||
105 | gen_.GenerateSinglePanel("Panel_hand_finger", kBottom, kRed, {.reuse_solution = true, .unique_pool = "bold"}); | ||
106 | |||
107 | // The Steady | ||
108 | |||
109 | // The Undeterred | ||
110 | gen_.GenerateSinglePanel("Panel_two_toucan", kTop, kBlue, {.unique_pool = "undeterred", .reuse_solution = true, .max_len_diff = 3}); | ||
111 | gen_.GenerateDoublePanel("Panel_ice_eyesight", "Panel_height_eyesight", kTop, kBlue, {.unique_pool = "undeterred", .max_len_diff = 4, .reuse_solution = true}); | ||
112 | gen_.GenerateSinglePanel("Panel_eye_hi", kTop, kBlue, {.unique_pool = "undeterred", .reuse_solution = true}); | ||
113 | gen_.GenerateSinglePanel("Panel_pen_open", kMiddle, kBlue, {.max_answer_len = 4, .unique_pool = "undeterred"}); | ||
114 | gen_.GenerateSinglePanel("Panel_not_notice", kMiddle, kBlue, {.unique_pool = "undeterred", .max_len_diff = 3, .reuse_solution = true}); | ||
115 | gen_.GenerateDoublePanel("Panel_just_readjust", "Panel_read_readjust", kMiddle, kBlue, {.unique_pool = "undeterred", .max_len_diff = 4}); | ||
116 | gen_.GenerateSinglePanel("Panel_ate_primate", kMiddle, kBlue, {.unique_pool = "undeterred", .reuse_solution = true}); | ||
117 | gen_.GenerateSinglePanel("Panel_bone_skeleton", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
118 | gen_.GenerateDoublePanel("Panel_mouth_face", "Panel_eye_face", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
119 | gen_.GenerateSinglePanel("Panel_toucan_bird", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
120 | gen_.GenerateSinglePanel("Panel_primate_mammal", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
121 | gen_.GenerateDoublePanel("Panel_continent_planet", "Panel_ocean_planet", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
122 | gen_.GenerateSinglePanel("Panel_wall_room", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
123 | |||
124 | // Crossroads | ||
125 | gen_.GeneratePairedPanels("Panel_sword_words", "Panel_words_sword", kMiddle, kYellow); | ||
126 | gen_.GeneratePairedPanels("Panel_turn_runt", "Panel_turn_runt2", kMiddle, kYellow); | ||
127 | // Panel_runt3: runt? return! | ||
128 | gen_.GenerateSinglePanel("Panel_corner", kTop, kYellow, {.multiword = true}); | ||
129 | gen_.GenerateSinglePanel("Panel_order_chaos", kBottom, kBlack, {.max_answer_len = 7}); | ||
130 | gen_.GenerateSinglePanel("Panel_swap_wasp", kMiddle, kYellow); | ||
131 | gen_.GenerateCohintedPanels("Panel_lost_lots", "Panel_lost_slot", kMiddle, kYellow); | ||
132 | gen_.GenerateSinglePanel("Panel_gel", kTop, kYellow); | ||
133 | gen_.GenerateSinglePanel("Panel_though", kTop, kYellow); | ||
134 | gen_.GenerateSinglePanel("Panel_eyes_see_shuffle", kMiddle, kYellow, {.multiword = true}); | ||
135 | gen_.GenerateSinglePanel("Panel_theeyes_theeyes", kMiddle, kWhite, {.multiword = true, .obscure_hint = true, .max_answer_len = 20}); | ||
136 | gen_.GenerateDoublePanel("Panel_amen_mean", "Panel_name_mean", kMiddle, kYellow); | ||
137 | gen_.GenerateSinglePanel("Panel_behind", kMiddle, kYellow, {.multiword = true}); | ||
138 | gen_.GenerateSinglePanel("Panel_crossroads_crossroads", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20}); | ||
139 | gen_.GenerateSinglePanel("Panel_corner_corner", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20}); | ||
140 | gen_.GenerateSinglePanel("Panel_hollow_hollow", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20}); | ||
141 | gen_.GeneratePairedPanels("Panel_far_far", "Panel_near_near", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20}); | ||
142 | gen_.GenerateSinglePanel("Panel_lost_found", kBottom, kBlack, {.max_answer_len = 7}); | ||
143 | gen_.GenerateSinglePanel("Panel_clockwise_counterclockwise", kBottom, kBlack, {.max_answer_len = 20}); | ||
144 | |||
145 | // Panel_past_present: past? present! | ||
146 | // Panel_future_present: future? present! | ||
147 | // Panel_future_past: future? past! | ||
148 | // Panel_past_future: past? future! | ||
149 | // Panel_past_past: past? past! | ||
150 | // Panel_pinecone_pine: pinecone? pine! | ||
151 | // Panel_acorn_oak: acorn? oak! | ||
152 | |||
153 | gen_.GeneratePairedPanels("Panel_left_left", "Panel_right_right", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20, .copy_to = "Panel_left_left_2", .copy_to2 = "Panel_right_right_2"}); | ||
154 | gen_.GenerateSinglePanel("Panel_middle_middle", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20, .copy_to = "Panel_middle_middle_2"}); | ||
155 | gen_.GenerateSinglePanel("Panel_shortcuts", kMiddle, kYellow, {.multiword = true}); | ||
156 | gen_.GenerateSinglePanel("Panel_tower", kMiddle, kYellow, {.multiword = true}); | ||
157 | |||
158 | // The Perceptive | ||
159 | gen_.GenerateSinglePanel("Panel_trace_trace", kMiddle, kWhite, {.obscure_hint = true}); | ||
160 | // Panel_path_lock: path? lock! | ||
161 | // Panel_path_knot: path? knot! | ||
162 | // Panel_path_lost: path? lost! | ||
163 | gen_.GenerateSinglePanel("Panel_look_look", kBottom, kWhite, {.max_answer_len = 7}); | ||
164 | // Panel_path_open: path? open! | ||
165 | // Panel_path_help: path? help! | ||
166 | // Panel_path_hunt: path? hunt! | ||
167 | // Panel_path_nest: path? nest! | ||
168 | // Panel_path_look: path? look! | ||
169 | gen_.GenerateSinglePanel("Panel_down_up", kBottom, kBlack, {.max_answer_len = 7}); | ||
170 | gen_.GenerateSinglePanel("Panel_strays_maze", kTop, kPurple, {.reuse_solution = true}); | ||
171 | gen_.GenerateSinglePanel("Panel_daze_maze", kMiddle, kPurple, {.max_answer_len = 6, .reuse_solution = true}); | ||
172 | gen_.GenerateSinglePanel("Panel_reflow_flower", kMiddle, kYellow); | ||
173 | gen_.GenerateSinglePanel("Panel_leap_jump", kBottom, kWhite, {.max_answer_len = 7}); | ||
174 | gen_.GenerateSinglePanel("Panel_hide_seek", kBottom, kBlack, {.max_answer_len = 7}); | ||
175 | gen_.GenerateSinglePanel("Panel_hide_seek_2", kBottom, kBlack, {.max_answer_len = 7}); | ||
176 | gen_.GenerateSinglePanel("Panel_hide_seek_3", kBottom, kBlack, {.max_answer_len = 7}); | ||
177 | gen_.GenerateSinglePanel("Panel_hide_seek_4", kBottom, kBlack, {.max_answer_len = 7}); | ||
178 | |||
179 | // The Observant | ||
180 | |||
181 | // Knight/Night | ||
182 | // there are some .allow_top_expansion = true panels that don't do anything yet | ||
183 | // and some paired top/middle stacks that aren't implemented bc honestly who caressss | ||
184 | gen_.GenerateSinglePanel("Panel_rat_tar", kMiddle, kBlack, {.palindrome = kRejectPalindrome}); | ||
185 | gen_.GenerateSinglePanel("Panel_discover_recover", kMiddle, kPurple, {.max_len_diff = 1}); | ||
186 | gen_.GenerateSinglePanel("Panel_deadend_deadened", kTop, kWhite, {.multiword = true}); | ||
187 | gen_.GenerateSinglePanel("Panel_deadend_deadend", kMiddle, kWhite, {.multiword = true, .obscure_hint = true}); | ||
188 | gen_.GenerateSinglePanel("Panel_warner_corner", kTop, kPurple); | ||
189 | gen_.GenerateSinglePanel("Panel_lies_lies", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20}); | ||
190 | gen_.GeneratePairedPanels("Panel_night_knight", "Panel_knight_night", kMiddle, kBlue); | ||
191 | gen_.GenerateSinglePanel("Panel_bee_be", kMiddle, kRed, {.allow_top_expansion = true}); | ||
192 | gen_.GenerateSinglePanel("Panel_new_knew", kMiddle, kBlue, {.max_answer_len = 4, .allow_top_expansion = true}); | ||
193 | gen_.GenerateSinglePanel("Panel_fore_for", kMiddle, kRed, {.allow_top_expansion = true}); | ||
194 | gen_.GenerateCohintedPanels("Panel_trusted_trust", "Panel_trusted_rusted", kMiddle, kRed, {.save_for_later = true}); | ||
195 | gen_.GenerateCohintedPanels("Panel_rust_trust", "Panel_rust_crust", kMiddle, kBlue, {.max_answer_len = 5, .save_for_later = true}); | ||
196 | gen_.GenerateSinglePanel("Panel_encrusted_rust", kMiddle, kRed, {.save_for_later = true}); | ||
197 | gen_.GenerateCohintedPanels("Panel_adjust_readjust", "Panel_adjust_adjusted", kMiddle, kBlue, {.max_answer_len = 6, .save_for_later = true}); | ||
198 | gen_.GenerateSinglePanel("Panel_adjust_readjusted", kMiddle, kBlue, {.save_for_later = true, .max_len_diff = 2}); | ||
199 | gen_.GeneratePairedPanels("Panel_before_fore", "Panel_be_before", kMiddle, kRed, {.obscure_hint = true}); | ||
200 | gen_.GenerateSinglePanel("Panel_trust_crust", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 0}); | ||
201 | gen_.GenerateSinglePanel("Panel_trust_crust_2", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 0}); | ||
202 | gen_.GenerateSinglePanel("Panel_trusted_readjusted", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 1}); | ||
203 | |||
204 | // The Traveled | ||
205 | gen_.GenerateSinglePanel("Panel_open_open", kMiddle, kWhite, {.obscure_hint = true, .unique_pool = "traveled", .save_for_later = true}); | ||
206 | gen_.GenerateSinglePanel("Panel_close_near", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
207 | gen_.GenerateDoublePanel("Panel_compose_write", "Panel_record_write", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
208 | gen_.GenerateSinglePanel("Panel_category_type", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
209 | gen_.GenerateDoublePanel("Panel_duplicate_same", "Panel_identical_same", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
210 | gen_.GenerateSinglePanel("Panel_distant_far", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
211 | gen_.GenerateSinglePanel("Panel_hay_straw", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
212 | gen_.GenerateDoublePanel("Panel_giggle_laugh", "Panel_chuckle_laugh", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
213 | gen_.GenerateSinglePanel("Panel_snitch_rat", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
214 | gen_.GenerateSinglePanel("Panel_concealed_hidden", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
215 | gen_.GenerateDoublePanel("Panel_plunge_fall", "Panel_autumn_fall", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
216 | gen_.GenerateSinglePanel("Panel_growths_warts", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
217 | |||
218 | // The Initiated | ||
219 | gen_.GenerateSinglePanel("Panel_locked_knocked", kMiddle, kPurple, {.max_answer_len = 5, .reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1}); | ||
220 | gen_.GenerateSinglePanel("Panel_daughter_laughter", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1}); | ||
221 | gen_.GenerateDoublePanel("Panel_move_love", "Panel_stove_love", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1}); | ||
222 | gen_.GenerateSinglePanel("Panel_scope_type", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1, .allow_top_expansion = true}); | ||
223 | gen_.GenerateSinglePanel("Panel_abyss_this", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1}); | ||
224 | gen_.GenerateDoublePanel("Panel_sweat_great", "Panel_beat_great", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1}); | ||
225 | gen_.GenerateSinglePanel("Panel_alumni_hi", kTop, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .allow_top_expansion = true}); | ||
226 | gen_.GenerateSinglePanel("Panel_wrath_path", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1, .allow_top_expansion = true}); | ||
227 | gen_.GenerateDoublePanel("Panel_knight_write", "Panel_byte_write", kTop, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 2}); | ||
228 | gen_.GenerateSinglePanel("Panel_maim_same", kTop, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 0}); | ||
229 | gen_.GenerateSinglePanel("Panel_bare_bear", kTop, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 0}); | ||
230 | gen_.GeneratePanelStack("Panel_chair_bear", kPurple, "", {}, "Panel_cost_most", kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 1}); | ||
231 | gen_.GenerateSinglePanel("Panel_bed_dead", kMiddle, kPurple, {.reuse_solution = true, .unique_pool = "initiated", .max_len_diff = 2}); | ||
232 | |||
233 | // The Bearer | ||
234 | gen_.GenerateCrossTower( | ||
235 | "Panel_north_missing", "Panel_diamonds_missing", "Panel_fire_missing", "Panel_winter_missing", | ||
236 | "Panel_north_north", "Panel_diamonds_diamonds", "Panel_fire_fire", "Panel_winter_winter", | ||
237 | "Panel_mouth_south", "Panel_yeast_east", "Panel_wet_west", | ||
238 | "Panel_spades_spades", "Panel_clubs_clubs", "Panel_hearts_hearts", | ||
239 | "Panel_earth_earth", "Panel_water_water", "Panel_water_water", | ||
240 | "Panel_summer_summer", "Panel_autumn_autumn", "Panel_spring_spring"); | ||
241 | gen_.GenerateSinglePanel("Panel_shortcut_shortcut", kMiddle, kWhite, {.obscure_hint = true, .max_answer_len = 20}); | ||
242 | // Panel_part_rap: part? rap! | ||
243 | // Panel_heart_tar: heart? tar! | ||
244 | // Panel_smile_lime: smile? lime! | ||
245 | // Panel_snow_won: snow? won! | ||
246 | // Panel_warts_star: warts? star! | ||
247 | // Panel_pots_top: pots? top! | ||
248 | // Panel_silent_list: silent? list! | ||
249 | // Panel_silent_list_2: silent? list! | ||
250 | // Panel_tent_net: tent? net! | ||
251 | // Panel_peace_ape: peace? ape! | ||
252 | // Panel_space_cape: space? cape! | ||
253 | // Panel_bowl_low: bowl? low! | ||
254 | |||
255 | // Wanderlust | ||
256 | gen_.GenerateOrangeNumberPanel("Panel_lust"); | ||
257 | gen_.GenerateOrangeNumberPanel("Panel_read"); | ||
258 | gen_.GenerateOrangeNumberPanel("Panel_sew"); | ||
259 | gen_.GenerateOrangeNumberPanel("Panel_dead"); | ||
260 | gen_.GenerateOrangeNumberPanel("Panel_1234567890_wanderlust"); | ||
261 | gen_.GenerateOrangeNumberPanel("Panel_834283054_undaunted"); | ||
262 | gen_.GenerateOrangeWordPanel("Panel_learn"); | ||
263 | gen_.GenerateOrangeWordPanel("Panel_dust"); | ||
264 | gen_.GenerateOrangeWordPanel("Panel_star"); | ||
265 | gen_.GenerateOrangeWordPanel("Panel_wander"); | ||
266 | gen_.GenerateOrangeWordPanel("Panel_wanderlust_1234567890"); | ||
267 | gen_.GenerateOrangeAdditionPanel("Panel_dads_ale_dead_1"); | ||
268 | gen_.GenerateOrangeAdditionPanel("Panel_art_art_eat_2"); | ||
269 | gen_.GenerateOrangeAdditionPanel("Panel_deer_wren_rats_3"); | ||
270 | gen_.GenerateOrangeAdditionPanel("Panel_learns_unsew_unrest_4"); | ||
271 | gen_.GenerateOrangeAdditionPanel("Panel_drawl_runs_enter_5"); | ||
272 | gen_.GenerateOrangeAdditionPanel("Panel_reads_rust_lawns_6"); | ||
273 | gen_.GenerateOrangeAdditionPanel("Panel_waded_wee_warts_7"); | ||
274 | |||
275 | // The Wise | ||
276 | // Panel_kitten_cat: kitten? cat! | ||
277 | // Panel_cat_kitten: cat? kitten! | ||
278 | // Panel_puppy_dog: puppy? dog! | ||
279 | // Panel_adult_child: adult? child! | ||
280 | // Panel_bread_mold: bread? mold! | ||
281 | // Panel_dinosaur_fossil: dinosaur? fossil! | ||
282 | // Panel_oak_acorn: oak? acorn! | ||
283 | // Panel_corpse_skeleton: corpse? skeleton! | ||
284 | // Panel_before_ere: before? ere! | ||
285 | // Panel_your_thy: your? thy! | ||
286 | // Panel_betwixt_between: betwixt? between! | ||
287 | // Panel_nigh_near: nigh? near! | ||
288 | // Panel_connexion_connection: connexion? connection! | ||
289 | // Panel_thou_you: thou? you! | ||
290 | |||
291 | // Art Gallery | ||
292 | gen_.GenerateSinglePanel("Panel_eon_one", kMiddle, kYellow, {.max_answer_len = 5}); | ||
293 | gen_.GenerateSinglePanel("Panel_to_two", kMiddle, kRed); | ||
294 | gen_.GenerateSinglePanel("Panel_free_three", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 1}); | ||
295 | gen_.GenerateSinglePanel("Panel_our_four", kMiddle, kBlue, {.reuse_solution = true, .max_len_diff = 1}); | ||
296 | gen_.GenerateSinglePanel("Panel_house_neighborhood", kBottom, kBlue, {.reuse_solution = true}); | ||
297 | gen_.GenerateStaticPanel("Panel_path_road", "path", "road"); // can't randomise brown yet | ||
298 | gen_.GenerateSinglePanel("Panel_park_drive", kBottom, kBlack, {.reuse_solution = true}); | ||
299 | gen_.GenerateSinglePanel("Panel_carriage_horse", kBottom, kRed, {.reuse_solution = true}); | ||
300 | gen_.GenerateSinglePanel("Panel_an_many", kMiddle, kBlue, {.max_answer_len = 4}); | ||
301 | gen_.GenerateSinglePanel("Panel_may_many", kMiddle, kBlue, {.max_answer_len = 4}); | ||
302 | gen_.GenerateSinglePanel("Panel_any_many", kMiddle, kBlue, {.max_answer_len = 4}); | ||
303 | gen_.GenerateSinglePanel("Panel_man_many", kMiddle, kBlue, {.max_answer_len = 4}); | ||
304 | gen_.GenerateSinglePanel("Panel_urns_turns", kMiddle, kBlue, {.max_len_diff = 1}); | ||
305 | gen_.GenerateSinglePanel("Panel_learns_turns", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 0}); | ||
306 | gen_.GenerateSinglePanel("Panel_runts_turns", kMiddle, kYellow); | ||
307 | gen_.GenerateOrangeAdditionPanel("Panel_send_use_turns"); | ||
308 | gen_.GenerateOrangeWordPanel("Panel_trust_06890"); | ||
309 | gen_.GenerateOrangeNumberPanel("Panel_06890_trust"); | ||
310 | gen_.GenerateOneRoadManyTurns("Panel_order_onepathmanyturns", "Panel_eon_one", "Panel_path_road", "Panel_any_many", "Panel_send_use_turns"); | ||
311 | |||
312 | // Rhyme Rooms | ||
313 | gen_.GeneratePanelStack("Panel_ascend_rhyme", kPurple, "", {}, "Panel_ascend_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
314 | gen_.GeneratePanelStack("Panel_double_rhyme", kPurple, "", {}, "Panel_double_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
315 | gen_.GeneratePanelStack("Panel_blocked_rhyme", kPurple, "", {}, "Panel_blocked_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
316 | gen_.GeneratePanelStack("Panel_rise_rhyme", kPurple, "", {}, "Panel_rise_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
317 | gen_.GeneratePanelStack("Panel_crystal_rhyme", kPurple, "", {}, "Panel_crystal_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
318 | gen_.GeneratePanelStack("Panel_creative_rhyme", kPurple, "", {}, "Panel_creative_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
319 | gen_.GeneratePanelStack("Panel_child_rhyme", kPurple, "", {}, "Panel_child_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
320 | gen_.GeneratePanelStack("Panel_hidden_rhyme", kPurple, "", {}, "Panel_hidden_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
321 | gen_.GeneratePanelStack("Panel_word_rhyme", kPurple, "", {}, "Panel_word_whole", kBlue, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
322 | gen_.GeneratePanelStack("Panel_silent_rhyme", kPurple, "", {}, "Panel_silent_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
323 | gen_.GeneratePanelStack("Panel_bones_rhyme", kPurple, "", {}, "Panel_bones_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
324 | gen_.GeneratePanelStack("Panel_sentence_rhyme", kPurple, "", {}, "Panel_sentence_whole", kBlue, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
325 | gen_.GeneratePanelStack("Panel_dream_rhyme", kPurple, "", {}, "Panel_dream_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
326 | gen_.GeneratePanelStack("Panel_mystery_rhyme", kPurple, "", {}, "Panel_mystery_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
327 | gen_.GeneratePanelStack("Panel_jump_rhyme", kPurple, "", {}, "Panel_jump_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
328 | gen_.GeneratePanelStack("Panel_fall_rhyme", kPurple, "", {}, "Panel_fall_syn", kWhite, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
329 | //gen_.GeneratePanelStack("Panel_return_rhyme", kPurple, "", {}, "Panel_return_ant", kBlack, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
330 | //gen_.GeneratePanelStack("Panel_descend_rhyme", kPurple, "", {}, "Panel_descend_ant", kBlack, {.unique_pool = "rhyme", .allow_top_expansion = true}); | ||
331 | // ^ commenting those out for now because they take disproportionately long to generate currently | ||
332 | gen_.GenerateSinglePanel("Panel_leap_leap", kMiddle, kWhite, {.obscure_hint = true}); | ||
333 | |||
334 | // The Optimistic | ||
335 | gen_.GenerateSinglePanel("Panel_backside_1", kMiddle, kWhite, {.obscure_hint = true}); | ||
336 | gen_.GenerateSinglePanel("Panel_backside_2", kMiddle, kWhite, {.obscure_hint = true}); | ||
337 | gen_.GenerateSinglePanel("Panel_backside_3", kMiddle, kWhite, {.obscure_hint = true}); | ||
338 | gen_.GenerateSinglePanel("Panel_backside_4", kMiddle, kWhite, {.obscure_hint = true}); | ||
339 | gen_.GenerateSinglePanel("Panel_backside_5", kMiddle, kWhite, {.obscure_hint = true}); | ||
340 | gen_.GenerateSinglePanel("Panel_farther_far", kMiddle, kRed); | ||
341 | // Panel_first_first: first? first! | ||
342 | // Panel_second_second: second? second! | ||
343 | // Panel_third_third: third? third! | ||
344 | // Panel_fourth_fourth: fourth? fourth! | ||
345 | |||
346 | // Number Hunt | ||
347 | gen_.GenerateSinglePanel("Panel_zero_zero", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 10}); | ||
348 | gen_.GenerateSinglePanel("Panel_one_one", kMiddle, kWhite, {.exact_len = 1}); | ||
349 | gen_.GenerateSinglePanel("Panel_two_two", kMiddle, kWhite, {.exact_len = 2}); | ||
350 | gen_.GenerateSinglePanel("Panel_two_two_2", kMiddle, kWhite, {.exact_len = 2}); | ||
351 | gen_.GenerateSinglePanel("Panel_three_three", kMiddle, kWhite, {.exact_len = 3}); | ||
352 | gen_.GenerateSinglePanel("Panel_three_three_2", kMiddle, kWhite, {.exact_len = 3}); | ||
353 | gen_.GenerateSinglePanel("Panel_three_three_3", kMiddle, kWhite, {.exact_len = 3}); | ||
354 | gen_.GenerateSinglePanel("Panel_four_four", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 4}); | ||
355 | gen_.GenerateSinglePanel("Panel_four_four_2", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 4}); | ||
356 | gen_.GenerateSinglePanel("Panel_four_four_3", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 4}); | ||
357 | gen_.GenerateSinglePanel("Panel_four_four_4", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 4}); | ||
358 | gen_.GenerateSinglePanel("Panel_five_five", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 5}); | ||
359 | gen_.GenerateSinglePanel("Panel_five_five_2", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 5}); | ||
360 | gen_.GenerateSinglePanel("Panel_five_five_3", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 5}); | ||
361 | gen_.GenerateSinglePanel("Panel_five_five_4", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 5}); | ||
362 | gen_.GenerateSinglePanel("Panel_five_five_5", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 5}); | ||
363 | gen_.GenerateSinglePanel("Panel_six_six", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 6}); | ||
364 | gen_.GenerateSinglePanel("Panel_six_six_2", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 6}); | ||
365 | gen_.GenerateSinglePanel("Panel_six_six_3", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 6}); | ||
366 | gen_.GenerateSinglePanel("Panel_six_six_4", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 6}); | ||
367 | gen_.GenerateSinglePanel("Panel_six_six_5", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 6}); | ||
368 | gen_.GenerateSinglePanel("Panel_six_six_6", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 6}); | ||
369 | gen_.GenerateSinglePanel("Panel_seven_seven", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
370 | gen_.GenerateSinglePanel("Panel_seven_seven_2", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
371 | gen_.GenerateSinglePanel("Panel_seven_seven_3", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
372 | gen_.GenerateSinglePanel("Panel_seven_seven_4", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
373 | gen_.GenerateSinglePanel("Panel_seven_seven_5", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
374 | gen_.GenerateSinglePanel("Panel_seven_seven_6", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
375 | gen_.GenerateSinglePanel("Panel_seven_seven_7", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 7}); | ||
376 | gen_.GenerateSinglePanel("Panel_eight_eight", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
377 | gen_.GenerateSinglePanel("Panel_eight_eight_2", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
378 | gen_.GenerateSinglePanel("Panel_eight_eight_3", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
379 | gen_.GenerateSinglePanel("Panel_eight_eight_4", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
380 | gen_.GenerateSinglePanel("Panel_eight_eight_5", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
381 | gen_.GenerateSinglePanel("Panel_eight_eight_6", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
382 | gen_.GenerateSinglePanel("Panel_eight_eight_7", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
383 | gen_.GenerateSinglePanel("Panel_eight_eight_8", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 8}); | ||
384 | gen_.GenerateSinglePanel("Panel_nine_nine", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
385 | gen_.GenerateSinglePanel("Panel_nine_nine_2", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
386 | gen_.GenerateSinglePanel("Panel_nine_nine_3", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
387 | gen_.GenerateSinglePanel("Panel_nine_nine_4", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
388 | gen_.GenerateSinglePanel("Panel_nine_nine_5", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
389 | gen_.GenerateSinglePanel("Panel_nine_nine_6", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
390 | gen_.GenerateSinglePanel("Panel_nine_nine_7", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
391 | gen_.GenerateSinglePanel("Panel_nine_nine_8", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
392 | gen_.GenerateSinglePanel("Panel_nine_nine_9", kMiddle, kWhite, {.obscure_hint = true, .exact_len = 9}); | ||
393 | |||
394 | // Directional Gallery | ||
395 | gen_.GenerateStaticPanel("Panel_paranoid_paranoid", "welcome back"); | ||
396 | gen_.GeneratePairedPanels("Panel_salt_pepper", "Panel_pepper_salt", kBottom, kBlack); | ||
397 | gen_.GenerateSinglePanel("Panel_ward_forward", kMiddle, kBlue, {.reuse_solution = true, .max_len_diff = 3}); | ||
398 | gen_.GenerateSinglePanel("Panel_hind_behind", kMiddle, kBlue, {.reuse_solution = true, .max_len_diff = 2}); | ||
399 | gen_.GenerateSinglePanel("Panel_rig_right", kMiddle, kBlue, {.reuse_solution = true, .max_len_diff = 2}); | ||
400 | gen_.GenerateSinglePanel("Panel_windward_forward", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 1}); | ||
401 | gen_.GenerateSinglePanel("Panel_light_right", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 0}); | ||
402 | gen_.GenerateSinglePanel("Panel_rewind_behind", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 0}); | ||
403 | gen_.GenerateSinglePanel("Panel_learn_return", kMiddle, kPurple, {.reuse_solution = true, .max_len_diff = 1}); | ||
404 | gen_.GenerateSinglePanel("Panel_turn_return", kMiddle, kBlue, {.reuse_solution = true, .max_len_diff = 2}); | ||
405 | |||
406 | |||
407 | |||
408 | // Room Room | ||
409 | gen_.GeneratePaintingPuzzle("Panel_painting_flower", "flower_painting_gray"); | ||
410 | gen_.GeneratePaintingPuzzle("Panel_painting_eye", "eye_painting_gray"); | ||
411 | gen_.GeneratePaintingPuzzle("Panel_painting_snowman", "snowman_painting_gray"); | ||
412 | gen_.GeneratePaintingPuzzle("Panel_painting_owl", "owl_painting_gray"); | ||
413 | gen_.GeneratePaintingPuzzle("Panel_painting_panda", "panda_painting_gray"); | ||
414 | |||
415 | |||
416 | |||
417 | |||
418 | // The Colorful | ||
419 | gen_.GenerateSinglePanel("Panel_begin_start", kBottom, kWhite, {.reuse_solution = true, .unique_pool = "traveled"}); | ||
420 | gen_.GenerateSinglePanel("Panel_found_lost", kBottom, kBlack, {.reuse_solution = true, .unique_pool = "agreeable"}); | ||
421 | gen_.GenerateSinglePanel("Panel_loaf_crust", kBottom, kRed, {.reuse_solution = true, .unique_pool = "bold"}); | ||
422 | //Panel_eggs_breakfast: cream? butter! | ||
423 | gen_.GenerateSinglePanel("Panel_sun_sky", kBottom, kBlue, {.reuse_solution = true, .unique_pool = "undeterred"}); | ||
424 | //Panel_teacher_substitute: spoon? fork! | ||
425 | //Panel_walnuts_orange: letters? numbers! | ||
426 | //Panel_path_i: walls? green! | ||
427 | //Panel_iron_rust: iron? rust! | ||
428 | //Panel_obstacle_door: obstacle? door! | ||
429 | |||
430 | // Champion's Rest | ||
431 | gen_.GenerateSinglePanel("Panel_hues_colors", kBottom, kWhite, {.max_answer_len = 6}); | ||
432 | gen_.GenerateSinglePanel("Panel_red_near", kMiddle, kWhite, {.copy_hidden = "Panel_red_afar"}); | ||
433 | gen_.GenerateSinglePanel("Panel_blue_near", kMiddle, kWhite, {.copy_hidden = "Panel_blue_afar"}); | ||
434 | gen_.GenerateSinglePanel("Panel_yellow_near", kMiddle, kWhite, {.copy_hidden = "Panel_yellow_afar"}); | ||
435 | gen_.GenerateSinglePanel("Panel_purple_near", kMiddle, kWhite, {.copy_hidden = "Panel_purple_afar"}); | ||
436 | gen_.GenerateSinglePanel("Panel_orange_near", kMiddle, kWhite, {.copy_hidden = "Panel_orange_afar"}); | ||
437 | gen_.GenerateSinglePanel("Panel_green_near", kMiddle, kWhite, {.copy_hidden = "Panel_green_afar"}); | ||
438 | //Panel_you: you? jeff! | ||
439 | gen_.GenerateStaticPanel("Panel_me", "me", "hatkirby"); | ||
440 | //Panel_secret_blue: blue? blue! | ||
441 | //Panel_secret_yellow: yellow? yellow! | ||
442 | //Panel_secret_red: red? red! | ||
443 | |||
444 | // The Fearless | ||
445 | gen_.GenerateSinglePanel("Panel_naps_span", kMiddle, kBlack, {.unique_pool = "fearless"}); | ||
446 | gen_.GenerateSinglePanel("Panel_funny_enough", kTop, kBlack, {.unique_pool = "fearless"}); | ||
447 | //Panel_easy_soft: easy? soft! | ||
448 | //Panel_sometimes_always: sometimes? always! | ||
449 | //Panel_dark_extinguish: dark? heavy! | ||
450 | //Panel_impatient_doctor: impatient? doctor! | ||
451 | //Panel_even_ordinary: even? ordinary! | ||
452 | //Panel_one_none: sum? none! | ||
453 | //Panel_one_many: none? sum! | ||
454 | gen_.GenerateSinglePanel("Panel_team_meet", kTop, kBlack, {.unique_pool = "fearless"}); | ||
455 | gen_.GenerateSinglePanel("Panel_teem_meat", kTop, kBlack, {.unique_pool = "fearless"}); | ||
456 | gen_.GenerateSinglePanel("Panel_eat_tea", kTop, kBlack, {.unique_pool = "fearless"}); | ||
457 | gen_.GenerateSinglePanel("Panel_came_make", kTop, kBlack, {.unique_pool = "fearless"}); | ||
458 | gen_.GenerateSinglePanel("Panel_same_mace", kTop, kBlack, {.unique_pool = "fearless"}); | ||
459 | gen_.GenerateSinglePanel("Panel_safe_face", kTop, kBlack, {.unique_pool = "fearless"}); | ||
460 | gen_.GenerateSinglePanel("Panel_might_time", kTop, kBlack, {.unique_pool = "fearless"}); | ||
461 | |||
462 | // The Scientific | ||
463 | |||
464 | |||
465 | |||
466 | // Challenge | ||
467 | gen_.GenerateSinglePanel("Panel_challenge_challenge", kMiddle, kWhite, {.unique_pool = "challenge", .obscure_hint = true, .max_answer_len = 20}); | ||
468 | gen_.GenerateSinglePanel("Panel_welcome_welcome", kMiddle, kWhite, {.unique_pool = "challenge", .obscure_hint = true, .max_answer_len = 20}); | ||
469 | //Panel_open_nepotism: open? nepotism! | ||
470 | gen_.GenerateSinglePanel("Panel_singed_singsong", kMiddle, kPurple, {.unique_pool = "challenge", .reuse_solution = true}); | ||
471 | gen_.GenerateSinglePanel("Panel_nevertrusted_maladjusted", kMiddle, kPurple, {.unique_pool = "challenge", .reuse_solution = true}); | ||
472 | gen_.GenerateSinglePanel("Panel_corner_corn", kMiddle, kRed, {.unique_pool = "challenge"}); | ||
473 | //Panel_strawberries_mold: strawberries? mold! | ||
474 | //Panel_grub_burger: grub? burger! | ||
475 | //Panel_bread_mold: cheese? mold! | ||
476 | //Panel_color_gray: color? gray! | ||
477 | gen_.GenerateSinglePanel("Panel_writer_songwriter", kMiddle, kBlue, {.unique_pool = "challenge", .reuse_solution = true}); | ||
478 | //Panel_tales_stale: 02759? stale! | ||
479 | gen_.GenerateSinglePanel("Panel_realeyes_realize", kTop, kWhite, {.unique_pool = "challenge", .multiword = true, .max_answer_len = 20}); | ||
480 | gen_.GenerateSinglePanel("Panel_lobs_lobster", kMiddle, kBlue, {.unique_pool = "challenge", .max_len_diff = 4}); | ||
481 | gen_.GenerateSinglePanel("Panel_double_anagram_1", kMiddle, kYellow, {.unique_pool = "challenge", .force_two_words = true}); | ||
482 | gen_.GenerateSinglePanel("Panel_double_anagram_2", kMiddle, kYellow, {.unique_pool = "challenge", .force_two_words = true}); | ||
483 | gen_.GenerateSinglePanel("Panel_double_anagram_3", kMiddle, kYellow, {.unique_pool = "challenge", .force_two_words = true}); | ||
484 | gen_.GenerateSinglePanel("Panel_double_anagram_4", kMiddle, kYellow, {.unique_pool = "challenge", .force_two_words = true}); | ||
485 | gen_.GenerateSinglePanel("Panel_double_anagram_5", kMiddle, kYellow, {.unique_pool = "challenge", .force_two_words = true}); | ||
486 | gen_.GenerateSinglePanel("Panel_double_anagram_6", kMiddle, kYellow, {.unique_pool = "challenge", .force_two_words = true}); | ||
487 | //Panel_facts: facts? car! | ||
488 | //Panel_facts2: facts? acts! | ||
489 | //Panel_facts3: acts? axe! | ||
490 | //Panel_facts4: acts? axle! | ||
491 | //Panel_facts5: acts? axles! | ||
492 | //Panel_facts6: acts? car! | ||
493 | |||
494 | |||
495 | |||
496 | |||
497 | |||
498 | |||
499 | // The Ecstatic | ||
500 | gen_.GenerateSinglePanel("Panel_soundgram_1", kTop, kYellow); | ||
501 | gen_.GenerateSinglePanel("Panel_soundgram_2", kTop, kYellow); | ||
502 | // Panel_scrambled_1: eggs? scrambled eggs! | ||
503 | // Panel_scrambled_2: vegetables? salad! | ||
504 | gen_.GenerateSinglePanel("Panel_anagram_6_1", kMiddle, kYellow, {.exact_len = 6}); | ||
505 | gen_.GenerateSinglePanel("Panel_anagram_6_2", kMiddle, kYellow, {.exact_len = 6}); | ||
506 | gen_.GenerateSinglePanel("Panel_anagram_7_1", kMiddle, kYellow, {.exact_len = 7}); | ||
507 | gen_.GenerateSinglePanel("Panel_anagram_7_2", kMiddle, kYellow, {.exact_len = 7}); | ||
508 | gen_.GenerateSinglePanel("Panel_anagram_7_3", kMiddle, kYellow, {.exact_len = 7}); | ||
509 | gen_.GenerateSinglePanel("Panel_anagram_7_4", kMiddle, kYellow, {.exact_len = 7}); | ||
510 | gen_.GenerateSinglePanel("Panel_anagram_8_1", kMiddle, kYellow, {.exact_len = 8}); | ||
511 | gen_.GenerateSinglePanel("Panel_anagram_8_2", kMiddle, kYellow, {.exact_len = 8}); | ||
512 | gen_.GenerateSinglePanel("Panel_anagram_8_3", kMiddle, kYellow, {.exact_len = 8}); | ||
513 | gen_.GenerateSinglePanel("Panel_anagram_9_1", kMiddle, kYellow, {.exact_len = 9}); | ||
514 | |||
515 | // The Red | ||
516 | gen_.GenerateSinglePanel("Panel_red_top_1", kTop, kRed); | ||
517 | gen_.GenerateSinglePanel("Panel_red_top_2", kTop, kRed); | ||
518 | gen_.GenerateSinglePanel("Panel_red_top_3", kTop, kRed); | ||
519 | gen_.GenerateSinglePanel("Panel_red_top_4", kTop, kRed); | ||
520 | //gen_.GeneratePanelStack("Panel_red_top_5", kRed, "Panel_red_mid_2", kRed, "", {}, .allow_top_expansion = true); // slow | ||
521 | gen_.GenerateSinglePanel("Panel_red_mid_1", kMiddle, kRed); | ||
522 | gen_.GenerateSinglePanel("Panel_red_mid_3", kMiddle, kRed); | ||
523 | gen_.GeneratePanelStack("", {}, "Panel_red_mid_4", kRed, "Panel_red_bot_4", kRed); | ||
524 | gen_.GeneratePanelStack("", {}, "Panel_red_mid_5", kRed, "Panel_red_bot_5", kRed); | ||
525 | gen_.GenerateSinglePanel("Panel_red_bot_1", kBottom, kRed, {.max_answer_len = 7}); | ||
526 | gen_.GenerateSinglePanel("Panel_red_bot_2", kBottom, kRed, {.max_answer_len = 7}); | ||
527 | gen_.GenerateSinglePanel("Panel_red_bot_3", kBottom, kRed, {.max_answer_len = 7}); | ||
528 | gen_.GenerateSinglePanel("Panel_red_bot_6", kBottom, kRed, {.max_answer_len = 7}); | ||
529 | |||
530 | // The Artistic | ||
531 | gen_.GeneratePanelStack("Panel_blue_top_1", kBlue, "", {}, "Panel_red_bot_1", kRed); | ||
532 | gen_.GeneratePanelStack("", {}, "Panel_red_mid_22", kRed, "Panel_blue_bot_2", kBlue); | ||
533 | gen_.GeneratePanelStack("", {}, "Panel_blue_mid_3", kBlue, "Panel_red_bot_3", kRed); | ||
534 | gen_.GeneratePanelStack("Panel_red_top_4", kRed, "Panel_blue_mid_4", kBlue, "", {}); | ||
535 | gen_.GeneratePanelStack("Panel_yellow_top_5", kYellow, "", {}, "Panel_blue_bot_5", kBlue); | ||
536 | gen_.GeneratePanelStack("Panel_blue_top_6", kBlue, "Panel_yellow_mid_6", kYellow, "", {}); | ||
537 | // gen_.GeneratePanelStack("", {}, "Panel_blue_mid_7", kBlue, "Panel_yellow_bot_7", kYellow); | ||
538 | gen_.GeneratePanelStack("", {}, "Panel_yellow_mid_8", kYellow, "Panel_black_bot_8", kBlack); | ||
539 | // gen_.GeneratePanelStack("Panel_black_top_9", kBlack, "", {}, "Panel_yellow_bot_9", kYellow); | ||
540 | //gen_.GeneratePanelStack("Panel_yellow_top_10", kYellow, "", {}, "Panel_black_bot_10", kBlack); // slow | ||
541 | gen_.GeneratePanelStack("Panel_black_top_11", kBlack, "Panel_yellow_mid_11", kYellow, "", {}); | ||
542 | gen_.GeneratePanelStack("Panel_black_top_12", kBlack, "", {}, "Panel_red_bot_12", kRed); | ||
543 | //gen_.GeneratePanelStack("Panel_red_top_13", kRed, "", {}, "Panel_black_bot_13", kBlack); // slow | ||
544 | gen_.GeneratePanelStack("", {}, "Panel_black_mid_14", kBlack, "Panel_red_bot_14", kRed); | ||
545 | gen_.GeneratePanelStack("Panel_black_top_15", kBlack, "Panel_red_mid_15", kRed, "", {}); | ||
546 | gen_.GenerateSinglePanel("Panel_answer_1", kBottom, kRed); | ||
547 | gen_.GenerateSinglePanel("Panel_answer_2", kTop, kBlack); | ||
548 | gen_.GenerateSinglePanel("Panel_answer_3", kMiddle, kBlue, {.max_answer_len = 4}); | ||
549 | gen_.GenerateSinglePanel("Panel_answer_4", kTop, kYellow); | ||
550 | gen_.GenerateOneRoadManyTurns("Panel_artistic_artistic", "Panel_answer_1", "Panel_answer_2", "Panel_answer_3", "Panel_answer_4"); | ||
551 | |||
552 | |||
553 | |||
554 | |||
555 | |||
556 | |||
557 | |||
558 | |||
559 | |||
560 | |||
561 | |||
562 | |||
563 | // Pilgrim Room | ||
564 | // gen_.GenerateSinglePanel("Panel_pilgrim", kMiddle, kBlue, {.reuse_solution = true}); | ||
565 | gen_.GenerateSinglePanel("Panel_shortcut", kMiddle, kYellow, {.multiword = true, .max_answer_len = 20}); | ||
566 | gen_.GenerateComboPanel("Panel_lingo_12", kMiddle, kPurple, kMiddle, kRed); | ||
567 | gen_.GenerateSinglePanel("Panel_lingo_1", kMiddle, kPurple, {.reuse_solution = true}); | ||
568 | gen_.GenerateSinglePanel("Panel_lingo_8", kMiddle, kBlack); | ||
569 | // Panel_lingo_7: 906234? strand room! | ||
570 | // Panel_lingo_13: floss paths? crossroads! | ||
571 | gen_.GenerateComboPanel("Panel_lingo_4", kBottom, kWhite, kMiddle, kPurple); | ||
572 | gen_.GenerateComboPanel("Panel_lingo_6", kBottom, kBlack, kBottom, kWhite); | ||
573 | gen_.GenerateSinglePanel("Panel_lingo_3", kBottom, kWhite); | ||
574 | gen_.GenerateComboPanel("Panel_lingo_10", kMiddle, kBlue, kMiddle, kRed); | ||
575 | gen_.GenerateSinglePanel("Panel_lingo_2", kBottom, kWhite); | ||
576 | gen_.GenerateSinglePanel("Panel_lingo_5", kMiddle, kYellow, {.multiword = true, .max_answer_len = 20}); | ||
577 | gen_.GenerateSinglePanel("Panel_lingo_11", kMiddle, kYellow, {.multiword = true, .max_answer_len = 20}); | ||
578 | // Panel_lingo_9: this? pilgrim room! | ||
579 | |||
580 | std::ifstream level1("../babe.tscn"); | ||
581 | std::ofstream output("newlevel.tscn"); | ||
582 | std::string line; | ||
583 | std::string name; | ||
584 | std::string question; | ||
585 | std::string answer; | ||
586 | std::map<std::string, int> resource_id_by_path; | ||
587 | int last_id = 0; | ||
588 | bool need_to_output_resources = false; | ||
589 | while (std::getline(level1, line)) { | ||
590 | if (line.substr(0, 18) == "[node name=\"Panel_") { | ||
591 | std::string stripstart = line.substr(12); | ||
592 | name = stripstart.substr(0, stripstart.find("\"")); | ||
593 | |||
594 | if (gen_.IsPanelRandomized(name)) { | ||
595 | std::tie(question, answer) = gen_.GetPanel(name); | ||
596 | } else { | ||
597 | name = ""; | ||
598 | } | ||
599 | } | ||
600 | |||
601 | if (line.empty()) { | ||
602 | name = ""; | ||
603 | } | ||
604 | |||
605 | if (!name.empty() && line.substr(0, 7) == "text = ") { | ||
606 | std::string stripstart = line.substr(8); | ||
607 | output << "text = \"" << question << "\"" << std::endl; | ||
608 | //question = stripstart.substr(0, stripstart.find("\"")); | ||
609 | } else if (!name.empty() && line.substr(0, 9) == "answer = ") { | ||
610 | std::string stripstart = line.substr(10); | ||
611 | //std::string answer = stripstart.substr(0, stripstart.find("\"")); | ||
612 | |||
613 | //std::cout << name << ": " << question << "? " << answer << "!" << std::endl; | ||
614 | output << "answer = \"" << answer << "\"" << std::endl; | ||
615 | } else if (line.substr(0, 9) == "[gd_scene") { | ||
616 | std::string stripstart = line.substr(21); | ||
617 | std::string numstr = stripstart.substr(0, stripstart.find(" ")); | ||
618 | int load_steps = std::atoi(numstr.c_str()); | ||
619 | output << "[gd_scene load_steps=" << (load_steps + gen_.GetResources().size()) << " format=2]\n"; | ||
620 | } else if (line.substr(0, 13) == "[ext_resource") { | ||
621 | std::string stripstart = line.substr(line.find("id=") + 3); | ||
622 | std::string numstr = stripstart.substr(0, stripstart.find("]")); | ||
623 | last_id = std::atoi(numstr.c_str()); | ||
624 | need_to_output_resources = true; | ||
625 | output << line << "\n"; | ||
626 | } else if (line.substr(0, 12) == "[node name=\"") { | ||
627 | std::string stripstart = line.substr(12); | ||
628 | std::string tempname = stripstart.substr(0, stripstart.find("\"")); | ||
629 | |||
630 | if (gen_.IsNodeRandomized(tempname)) { | ||
631 | int id_pos = line.find("(") + 2; | ||
632 | auto [path, res_id] = gen_.GetNode(tempname); | ||
633 | if (res_id != 0) { | ||
634 | output << line.substr(0, id_pos) + std::to_string(res_id) + " )]\n"; | ||
635 | } else { | ||
636 | output << line.substr(0, id_pos) + std::to_string(resource_id_by_path[path]) + " )]\n"; | ||
637 | } | ||
638 | } else { | ||
639 | output << line << "\n"; | ||
640 | } | ||
641 | } else if (line.empty() && need_to_output_resources) { | ||
642 | for (const auto& [path, type] : gen_.GetResources()) { | ||
643 | last_id++; | ||
644 | resource_id_by_path[path] = last_id; | ||
645 | output << "[ext_resource path=\"" << path << "\" type=\"" << type << "\" id=" << last_id << "]\n"; | ||
646 | } | ||
647 | output << "\n"; | ||
648 | need_to_output_resources = false; | ||
649 | } else { | ||
650 | output << line << "\n"; | ||
651 | } | ||
652 | } | ||
653 | } | ||
654 | |||
655 | private: | ||
656 | |||
657 | unsigned int seed_; | ||
658 | Generator gen_; | ||
659 | }; | ||
660 | |||
661 | int main(int argc, char** argv) { | ||
662 | std::random_device randomDevice; | ||
663 | unsigned int seed = randomDevice() % 1000000; | ||
664 | |||
665 | Randomizer randomizer(seed); | ||
666 | randomizer.Run(); | ||
667 | |||
668 | return 0; | ||
669 | } | ||