#include "PuzzlesetMedium.h" #include "Generate.h" const std::vector>& GetMediumPuzzles() { static std::vector> generator_fns{ [](Generate& generator) { generator.setSymbol(Decoration::Start, 2 * 2, 2 * 2); generator.setSymbol(Decoration::Exit, 4 * 2, 0); generator.generate( 4, 4, {{{Decoration::Stone | Decoration::Color::White, 5}, {Decoration::Stone | Decoration::Color::Black, 5}, {Decoration::Dot, 4}, {Decoration::Eraser | Decoration::Color::Green, 1}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Exit, 0, 0); generator.setSymbol(Decoration::Exit, 7 * 2, 0); generator.setSymbol(Decoration::Exit, 7 * 2, 7 * 2); generator.generate(7, 7, {{{Decoration::Stone | Decoration::Color::White, 10}, {Decoration::Stone | Decoration::Color::Black, 10}, {Decoration::Dot, 10}, {Decoration::Start, 4}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Exit, 0, 0); generator.setSymbol(Decoration::Exit, 7 * 2, 0); generator.setSymbol(Decoration::Exit, 7 * 2, 7 * 2); generator.generate( 7, 7, {{{Decoration::Stone | Decoration::Color::White, 10}, {Decoration::Stone | Decoration::Color::Black, 10}, {Decoration::Dot, 10}, {Decoration::Eraser | Decoration::Color::Purple, 1}, {Decoration::Start, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate(5, 5, {{{Decoration::Star | Decoration::White, 8}, {Decoration::Star | Decoration::Black, 6}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::DisconnectShapes); generator.generate( 4, 4, {{{Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Eraser | Decoration::Color::White, 1}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 2 * 2, 2 * 2); generator.setSymbol(Decoration::Exit, 4 * 2, 0); generator.generate( 4, 4, {{{Decoration::Dot_Intersection, 25}, {Decoration::Stone | Decoration::Color::Black, 2}, {Decoration::Stone | Decoration::Color::White, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::RequireCancelShapes); generator.generate(6, 6, {{{Decoration::Dot_Intersection, 49}, {Decoration::Poly | Decoration::Color::Yellow, 1}, {Decoration::Poly | Decoration::Color::Yellow | Decoration::Can_Rotate, 2}, {Decoration::Poly | Decoration::Color::Blue | Decoration::Negative, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Eraser | Decoration::Color::White, 1}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 0, 3 * 2); generator.setSymbol(Decoration::Exit, 6 * 2, 3 * 2); generator.generate(6, 3, {{{Decoration::Star | Decoration::Color::Magenta, 3}, {Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Eraser | Decoration::White, 1}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 0, 3 * 2); generator.setSymbol(Decoration::Exit, 6 * 2, 3 * 2); generator.generate(6, 3, {{{Decoration::Star | Decoration::Color::Magenta, 5}, {Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Eraser | Decoration::White, 1}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 0, 3 * 2); generator.setSymbol(Decoration::Exit, 6 * 2, 3 * 2); generator.generate(6, 3, {{{Decoration::Star | Decoration::Color::Magenta, 6}, {Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Eraser | Decoration::White, 1}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 0, 3 * 2); generator.setSymbol(Decoration::Exit, 7 * 2, 3 * 2); generator.generate(7, 3, {{{Decoration::Star | Decoration::Color::Magenta, 5}, {Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Eraser | Decoration::White, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Orange, 6}, {Decoration::Star | Decoration::Color::Magenta, 6}, {Decoration::Star | Decoration::Color::Green, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.setFlag(Generate::FullGaps); generator.generate(5, 5, {{{Decoration::Star | Decoration::Color::Magenta, 8}, {Decoration::Dot_Intersection, 9}, {Decoration::Gap, 5}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Black, 4}, {Decoration::Star | Decoration::Color::White, 4}, {Decoration::Stone | Decoration::Color::Black, 2}, {Decoration::Stone | Decoration::Color::White, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Orange, 2}, {Decoration::Poly | Decoration::Color::Magenta, 1}, {Decoration::Star | Decoration::Color::Magenta, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.setFlag(Generate::RequireCombineShapes); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Orange, 1}, {Decoration::Poly | Decoration::Can_Rotate | Decoration::Color::Orange, 1}, {Decoration::Star | Decoration::Color::Magenta, 4}, {Decoration::Star | Decoration::Color::Green, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Poly | Decoration::Color::Orange, 3}, {Decoration::Stone | Decoration::Color::White, 2}, {Decoration::Stone | Decoration::Color::Black, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate(4, 4, {{{Decoration::Dot_Intersection, 25}, {Decoration::Poly | Decoration::Can_Rotate | Decoration::Color::Yellow, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::SmallShapes); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Can_Rotate | Decoration::Color::Yellow, 4}, {Decoration::Star | Decoration::Color::Orange, 6}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate(5, 5, {{{Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Gap, 5}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Yellow, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::DisconnectShapes); generator.generate( 4, 4, {{{Decoration::Poly | Decoration::Color::Yellow, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate(5, 5, {{{Decoration::Poly | Decoration::Can_Rotate | Decoration::Color::Yellow, 2}, {Decoration::Poly | Decoration::Color::Yellow, 1}, {Decoration::Gap, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::BigShapes); generator.generate(5, 5, {{{Decoration::Poly | Decoration::Can_Rotate | Decoration::Color::Yellow, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 6, {{{Decoration::Poly | Decoration::Color::Yellow, 5}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::BigShapes); generator.generate(4, 4, {{{Decoration::Poly | Decoration::Color::Yellow, 2}, {Decoration::Poly | Decoration::Negative | Decoration::Color::Blue, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate(4, 4, {{{Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Poly | Decoration::Negative | Decoration::Color::Blue, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Triangle | Decoration::Color::Orange, 8}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::LongestPath); generator.setFlag(Generate::FullGaps); generator.generate( 6, 6, {{{Decoration::Dot_Intersection, 12}, {Decoration::Gap, 18}}}); }, [](Generate& generator) { generator.generate(5, 5, {{{Decoration::Start, 8}, {Decoration::Exit, 1}, {Decoration::Dot_Intersection, 36}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setSymmetry(Panel::Horizontal); generator.generate( 6, 6, {{{Decoration::Triangle | Decoration::Color::Orange, 12}, {Decoration::Start, 1}, {Decoration::Exit, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Dot, 4}, {Decoration::Stone | Decoration::Color::Black, 2}, {Decoration::Stone | Decoration::Color::White, 2}, {Decoration::Star | Decoration::Color::Black, 2}, {Decoration::Star | Decoration::Color::White, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Dot, 4}, {Decoration::Stone | Decoration::Color::Black, 1}, {Decoration::Stone | Decoration::Color::White, 3}, {Decoration::Star | Decoration::Color::Black, 3}, {Decoration::Star | Decoration::Color::White, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Yellow, 2}, {Decoration::Stone | Decoration::Color::Black, 4}, {Decoration::Stone | Decoration::Color::White, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 5, {{{Decoration::Stone | Decoration::Color::Cyan, 2}, {Decoration::Stone | Decoration::Color::Yellow, 2}, {Decoration::Star | Decoration::Color::Cyan, 3}, {Decoration::Star | Decoration::Color::Yellow, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 6, 6, {{{Decoration::Stone | Decoration::Color::Cyan, 2}, {Decoration::Stone | Decoration::Color::Magenta, 2}, {Decoration::Star | Decoration::Color::Cyan, 2}, {Decoration::Star | Decoration::Color::Magenta, 1}, {Decoration::Poly | Decoration::Color::Cyan, 1}, {Decoration::Poly | Decoration::Color::Magenta, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 5, {{{Decoration::Triangle | Decoration::Color::Orange, 10}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 3, {{{Decoration::Stone | Decoration::Color::Black, 4}, {Decoration::Stone | Decoration::Color::White, 3}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Dot, 25}, {Decoration::Triangle | Decoration::Color::Orange, 6}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::RequireCombineShapes); generator.setSymmetry(Panel::Rotational); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Yellow, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::DisconnectShapes); generator.setFlag(Generate::BigShapes); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Yellow, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::DisconnectShapes); generator.generate(4, 4, {{{Decoration::Poly | Decoration::Color::Yellow, 3}, {Decoration::Poly | Decoration::Color::Blue | Decoration::Negative, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Stone | Decoration::Color::Black, 3}, {Decoration::Stone | Decoration::Color::White, 3}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Black, 4}, {Decoration::Star | Decoration::Color::White, 4}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Orange, 3}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Black, 2}, {Decoration::Star | Decoration::Color::Orange, 2}, {Decoration::Stone | Decoration::Color::Black, 1}, {Decoration::Stone | Decoration::Color::Orange, 1}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::BigShapes); generator.generate( 4, 4, {{{Decoration::Poly | Decoration::Color::Yellow | Decoration::Can_Rotate, 1}, {Decoration::Triangle | Decoration::Color::Orange, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::BigShapes); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Yellow | Decoration::Can_Rotate, 1}, {Decoration::Triangle | Decoration::Color::Orange, 6}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::BigShapes); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Yellow, 2}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Dot, 25}, {Decoration::Triangle | Decoration::Color::Orange, 4}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 0, 4 * 2); generator.setSymbol(Decoration::Exit, 0, 0); generator.generate( 4, 4, {{{Decoration::Dot, 25}, {Decoration::Triangle | Decoration::Color::Orange, 5}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 0, 4 * 2); generator.setSymbol(Decoration::Exit, 4 * 2, 4 * 2); generator.generate( 4, 4, {{{Decoration::Dot, 25}, {Decoration::Triangle | Decoration::Color::Orange, 5}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Dot, 25}, {Decoration::Triangle | Decoration::Color::Orange, 6}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setFlag(Generate::DisconnectShapes); generator.generate(5, 5, {{{Decoration::Poly | Decoration::Color::Yellow | Decoration::Can_Rotate, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Black, 4}, {Decoration::Star | Decoration::Color::White, 4}, {Decoration::Star | Decoration::Color::Orange, 4}, {Decoration::Stone | Decoration::Color::Black, 1}, {Decoration::Stone | Decoration::Color::White, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 3, 3, {{{Decoration::Stone | Decoration::Color::Magenta, 2}, {Decoration::Stone | Decoration::Color::Green, 1}, {Decoration::Star | Decoration::Color::Magenta, 2}, {Decoration::Star | Decoration::Color::Green, 3}, {Decoration::Eraser | Decoration::Color::Magenta, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Dot_Intersection, 25}, {Decoration::Poly | Decoration::Color::Yellow, 3}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Start, 2 * 2, 2 * 2); generator.setSymbol(Decoration::Exit, 4 * 2, 0); generator.generate(4, 4, {{{Decoration::Dot_Intersection, 25}, {Decoration::Poly | Decoration::Color::Yellow | Decoration::Can_Rotate, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 5, 5, {{{Decoration::Poly | Decoration::Color::Green, 4}, {Decoration::Star | Decoration::Color::Green, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.generate( 4, 4, {{{Decoration::Triangle2 | Decoration::Color::Orange, 12}}}); }, [](Generate& generator) { generator.setSymbol(Decoration::Exit, 0, 0); generator.setSymbol(Decoration::Exit, 7 * 2, 0); generator.setSymbol(Decoration::Exit, 7 * 2, 7 * 2); generator.generate( 7, 7, {{{Decoration::Triangle | Decoration::Color::Orange, 12}, {Decoration::Start, 3}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Orange, 1}, {Decoration::Triangle | Decoration::Color::Orange, 7}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Orange, 3}, {Decoration::Star | Decoration::Color::Magenta, 2}, {Decoration::Triangle | Decoration::Color::Orange, 2}, {Decoration::Triangle | Decoration::Color::Magenta, 2}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate(4, 4, {{{Decoration::Star | Decoration::Color::Magenta, 4}, {Decoration::Dot_Intersection, 25}}}); }, [](Generate& generator) { generator.setSymmetry(Panel::Symmetry::FlipNegXY); generator.generate(7, 7, {{{Decoration::Gap, 10}, {Decoration::Dot_Intersection, 8}, {Decoration::Start, 2}, {Decoration::Exit, 1}}}); }, [](Generate& generator) { generator.setGridSize(7, 7); generator.setSymmetry(Panel::Symmetry::ParallelV); generator.generate(7, 7, {{{Decoration::Gap, 12}, {Decoration::Dot_Intersection, 10}, {Decoration::Start, 2}, {Decoration::Exit, 1}}}); }, [](Generate& generator) { generator.setGridSize(7, 7); generator.setSymmetry(Panel::Symmetry::ParallelHFlip); generator.generate(7, 7, {{{Decoration::Gap, 12}, {Decoration::Dot_Intersection, 10}, {Decoration::Start, 2}, {Decoration::Exit, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::StartEdgeOnly); generator.setSymbol(Decoration::Exit, 4 * 2, 0); generator.generate(4, 4, {{{Decoration::Dot_Intersection, 25}, {Decoration::Poly | Decoration::Color::Yellow, 1}, {Decoration::Poly | Decoration::Color::Yellow | Decoration::Can_Rotate, 2}, {Decoration::Start, 1}}}); }, [](Generate& generator) { generator.setFlag(Generate::RegularStartEnd); generator.setSymmetry(Panel::Vertical); generator.generate( 7, 7, {{{Decoration::Poly | Decoration::Color::Yellow, 5}}}); }, [](Generate& generator) { generator.setFlag(Generate::TreehouseLayout); generator.generate( 4, 4, {{{Decoration::Star | Decoration::Color::Black, 1}, {Decoration::Star | Decoration::Color::White, 2}, {Decoration::Stone | Decoration::Color::Black, 2}, {Decoration::Stone | Decoration::Color::White, 1}, {Decoration::Poly | Decoration::Can_Rotate | Decoration::Orange, 1}, {Decoration::Poly | Decoration::Orange, 1}}}); }, }; return generator_fns; }