diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-18 09:16:16 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-18 09:16:16 -0800 |
commit | bff40e55c9c55fbc8439bb225d1937b2d805e629 (patch) | |
tree | e3aa7a2912c4208247139a9c2b806035af876a33 /Source/Randomizer2Core.h | |
parent | 695d0e12950b9df248ea7b84f8434e32acc84f11 (diff) | |
download | witness-tutorializer-bff40e55c9c55fbc8439bb225d1937b2d805e629.tar.gz witness-tutorializer-bff40e55c9c55fbc8439bb225d1937b2d805e629.tar.bz2 witness-tutorializer-bff40e55c9c55fbc8439bb225d1937b2d805e629.zip |
Cleanup & progress on tutorial
Diffstat (limited to 'Source/Randomizer2Core.h')
-rw-r--r-- | Source/Randomizer2Core.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Randomizer2Core.h b/Source/Randomizer2Core.h index 1b97fba..63ba6a8 100644 --- a/Source/Randomizer2Core.h +++ b/Source/Randomizer2Core.h | |||
@@ -7,12 +7,11 @@ class Puzzle; | |||
7 | class Randomizer2Core { | 7 | class Randomizer2Core { |
8 | public: | 8 | public: |
9 | // CAUTION: Does not actually cut edges, just returns a list of suggested cuts. | 9 | // CAUTION: Does not actually cut edges, just returns a list of suggested cuts. |
10 | // Cuts a number of edges equal to the number of colors in the color grid. | 10 | static std::vector<Pos> CutEdges(const Puzzle& p, size_t numEdges); |
11 | static std::vector<Pos> CutEdgesToBeUnique(const Puzzle& p); | 11 | static std::vector<Pos> CutEdges2(const Puzzle& p, size_t numEdges); |
12 | static void CutEdgesNotOutsideNotBreakingSequence(Puzzle& p, size_t numEdges); | ||
13 | 12 | ||
14 | private: | 13 | private: |
15 | static std::vector<Pos> CutEdgesInternal(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, std::vector<Pos>& edges, size_t numEdges); | 14 | static std::vector<Pos> CutEdgesInternal(const Puzzle& p, std::vector<Pos>& edges, size_t numEdges); |
16 | static void DebugColorGrid(const std::vector<std::vector<int>>& colorGrid); | 15 | static void DebugColorGrid(const std::vector<std::vector<int>>& colorGrid); |
17 | static void FloodFill(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int color, int x, int y); | 16 | static void FloodFill(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int color, int x, int y); |
18 | static void FloodFillOutside(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int x, int y); | 17 | static void FloodFillOutside(const Puzzle& p, std::vector<std::vector<int>>& colorGrid, int x, int y); |