diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-28 16:38:07 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-28 16:38:07 -0400 |
| commit | cfc41eb3ccc99b92220115b0710fb821525e1075 (patch) | |
| tree | 6f7fa042a43647ea196bb2a9a86b3528e7eb740e /ext/wittle_generator/Generate.h | |
| parent | b496a29a7de381765f3c45ced9fa18f026b2e314 (diff) | |
| download | wittle-cfc41eb3ccc99b92220115b0710fb821525e1075.tar.gz wittle-cfc41eb3ccc99b92220115b0710fb821525e1075.tar.bz2 wittle-cfc41eb3ccc99b92220115b0710fb821525e1075.zip | |
generating a lot of puzzles
Diffstat (limited to 'ext/wittle_generator/Generate.h')
| -rw-r--r-- | ext/wittle_generator/Generate.h | 4 |
1 files changed, 3 insertions, 1 deletions
| diff --git a/ext/wittle_generator/Generate.h b/ext/wittle_generator/Generate.h index cbb870d..9969998 100644 --- a/ext/wittle_generator/Generate.h +++ b/ext/wittle_generator/Generate.h | |||
| @@ -114,6 +114,8 @@ class Generate { | |||
| 114 | std::set<Point> customPath; | 114 | std::set<Point> customPath; |
| 115 | Color arrowColor, backgroundColor, successColor; // For the arrow puzzles | 115 | Color arrowColor, backgroundColor, successColor; // For the arrow puzzles |
| 116 | 116 | ||
| 117 | bool place_gaps(int amount); | ||
| 118 | |||
| 117 | private: | 119 | private: |
| 118 | int get_symbol_type(int flags) { return flags & 0x700; } | 120 | int get_symbol_type(int flags) { return flags & 0x700; } |
| 119 | void set_path(Point pos); | 121 | void set_path(Point pos); |
| @@ -174,7 +176,7 @@ class Generate { | |||
| 174 | bool place_start(int amount); | 176 | bool place_start(int amount); |
| 175 | bool place_exit(int amount); | 177 | bool place_exit(int amount); |
| 176 | bool can_place_gap(Point pos); | 178 | bool can_place_gap(Point pos); |
| 177 | bool place_gaps(int amount); | 179 | |
| 178 | bool can_place_dot(Point pos, bool intersectionOnly); | 180 | bool can_place_dot(Point pos, bool intersectionOnly); |
| 179 | bool place_dots(int amount, int color, bool intersectionOnly); | 181 | bool place_dots(int amount, int color, bool intersectionOnly); |
| 180 | bool can_place_stone(const std::set<Point>& region, int color); | 182 | bool can_place_stone(const std::set<Point>& region, int color); |
