From fe0f2e5a2220223f4fd617340b98729fd3888075 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 14 Jan 2025 21:19:44 -0500 Subject: Added some puzzles from Variety randomizer --- ext/wittle_generator/PuzzlesetMedium.cpp | 112 +++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) (limited to 'ext/wittle_generator/PuzzlesetMedium.cpp') diff --git a/ext/wittle_generator/PuzzlesetMedium.cpp b/ext/wittle_generator/PuzzlesetMedium.cpp index afc7e45..8e768d1 100644 --- a/ext/wittle_generator/PuzzlesetMedium.cpp +++ b/ext/wittle_generator/PuzzlesetMedium.cpp @@ -590,6 +590,118 @@ const std::vector>& GetMediumPuzzles() { 1}, {Decoration::Poly | Decoration::Orange, 1}}}); }, + [](Generate& generator) { + generator.setFlag(Generate::FullGaps); + generator.setSymbol(Decoration::Start, 4 * 2, 4 * 2); + generator.setSymbol(Decoration::Exit, 2 * 2, 0); + generator.generate( + 5, 5, + {{{Decoration::Gap, 7}, + {Decoration::Stone | Decoration::Color::Black, 5}, + {Decoration::Stone | Decoration::Color::Magenta, 6}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::FullGaps); + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 6, 6, + {{{Decoration::Gap, 11}, + {Decoration::Star | Decoration::Color::Black, 6}, + {Decoration::Star | Decoration::Color::Magenta, 6}}}); + }, + [](Generate& generator) { + generator.generate( + 4, 4, + {{{Decoration::Start, 1}, + {Decoration::Exit, 1}, + {Decoration::Dot_Intersection, 25}, + {Decoration::Stone | Decoration::Color::Black, 3}, + {Decoration::Stone | Decoration::Color::Magenta, 3}}}); + }, + [](Generate& generator) { + generator.generate( + 4, 4, + {{{Decoration::Start, 1}, + {Decoration::Exit, 1}, + {Decoration::Dot_Intersection, 25}, + {Decoration::Star | Decoration::Color::Black, 4}, + {Decoration::Star | Decoration::Color::White, 2}}}); + }, + [](Generate& generator) { + generator.generate(4, 4, + {{{Decoration::Start, 1}, + {Decoration::Exit, 1}, + {Decoration::Dot_Intersection, 25}, + {Decoration::Poly | Decoration::Color::Black, 2}, + {Decoration::Poly | Decoration::Negative | + Decoration::Color::Magenta, + 2}}}); + }, + [](Generate& generator) { + generator.generate( + 4, 4, + {{{Decoration::Start, 1}, + {Decoration::Exit, 1}, + {Decoration::Dot_Intersection, 25}, + {Decoration::Eraser | Decoration::Color::Black, 1}, + {Decoration::Star | Decoration::Color::Black, 3}, + {Decoration::Stone | Decoration::Color::Black, 3}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.setFlag(Generate::RequireCombineShapes); + generator.generate(4, 4, + {{{Decoration::Eraser, 1}, + {Decoration::Poly | Decoration::Color::Yellow, 3}, + {Decoration::Gap, 5}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 4, 4, + {{{Decoration::Dot, 9}, + {Decoration::Eraser | Decoration::Color::Green, 2}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 4, 4, + {{{Decoration::Dot, 11}, + {Decoration::Eraser | Decoration::Color::Green, 2}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 5, 5, + {{{Decoration::Dot, 15}, + {Decoration::Eraser | Decoration::Color::Green, 2}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 5, 5, + {{{Decoration::Dot, 17}, + {Decoration::Eraser | Decoration::Color::Green, 2}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 5, 5, {{{Decoration::Triangle1 | Decoration::Color::Magenta, 15}}}); + }, + [](Generate& generator) { + generator.setSymbol(Decoration::Start, 2 * 2, 5 * 2); + generator.setSymbol(Decoration::Exit, 2 * 2, 0); + generator.generate( + 5, 5, + {{{Decoration::Stone | Decoration::Color::Black, 5}, + {Decoration::Stone | Decoration::Color::White, 5}, + {Decoration::Triangle | Decoration::Color::Orange, 5}}}); + }, + [](Generate& generator) { + generator.setFlag(Generate::RegularStartEnd); + generator.generate( + 6, 6, {{{Decoration::Triangle | Decoration::Color::Orange, 15}}}); + }, }; return generator_fns; -- cgit 1.4.1