diff options
Diffstat (limited to 'generator.h')
-rw-r--r-- | generator.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/generator.h b/generator.h index 1c7934e..7803004 100644 --- a/generator.h +++ b/generator.h | |||
@@ -56,6 +56,7 @@ struct GenerateOptions { | |||
56 | std::string copy_hidden; // supported by single mid white | 56 | std::string copy_hidden; // supported by single mid white |
57 | bool force_two_words = false; | 57 | bool force_two_words = false; |
58 | bool must_be_broad = false; // the solution must also be gettable by bottom white/red/blue. supported by single and double | 58 | bool must_be_broad = false; // the solution must also be gettable by bottom white/red/blue. supported by single and double |
59 | bool allow_top_expansion = false; // this disables the triviality check that top puzzles can't also apply to middle | ||
59 | }; | 60 | }; |
60 | 61 | ||
61 | class Wanderlust { | 62 | class Wanderlust { |
@@ -197,7 +198,7 @@ public: | |||
197 | 198 | ||
198 | private: | 199 | private: |
199 | 200 | ||
200 | verbly::filter MakeHintFilter(verbly::filter subfilter, Height height, Colour colour, FilterDirection filter_direction); | 201 | verbly::filter MakeHintFilter(verbly::filter subfilter, Height height, Colour colour, FilterDirection filter_direction) const; |
201 | 202 | ||
202 | bool GenerateSinglePanelImpl(std::string name, Height height, Colour colour, GenerateOptions options); | 203 | bool GenerateSinglePanelImpl(std::string name, Height height, Colour colour, GenerateOptions options); |
203 | 204 | ||
@@ -215,7 +216,7 @@ private: | |||
215 | 216 | ||
216 | verbly::filter GetWordFilter(FilterDirection direction, GenerateOptions options) const; | 217 | verbly::filter GetWordFilter(FilterDirection direction, GenerateOptions options) const; |
217 | 218 | ||
218 | bool IsClueTrivial(Height height, Colour colour, const verbly::form& clue, const verbly::form& solution) const; | 219 | bool IsClueTrivial(Height height, Colour colour, const verbly::form& clue, const verbly::form& solution, GenerateOptions options = {}) const; |
219 | 220 | ||
220 | unsigned int seed_; | 221 | unsigned int seed_; |
221 | std::mt19937 rng_; | 222 | std::mt19937 rng_; |