diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-19 09:59:59 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-19 09:59:59 -0800 |
commit | ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1 (patch) | |
tree | 352bbf485dee4cc8f465d928b131524ca7329d5e /Source/Randomizer2.cpp | |
parent | 52b01775c2c94f08786696cae7836ca56f683739 (diff) | |
download | witness-tutorializer-ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1.tar.gz witness-tutorializer-ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1.tar.bz2 witness-tutorializer-ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1.zip |
shrug
Diffstat (limited to 'Source/Randomizer2.cpp')
-rw-r--r-- | Source/Randomizer2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Randomizer2.cpp b/Source/Randomizer2.cpp index adf8eb6..00b584e 100644 --- a/Source/Randomizer2.cpp +++ b/Source/Randomizer2.cpp | |||
@@ -34,6 +34,7 @@ void Randomizer2::RandomizeTutorial() { | |||
34 | Puzzle p; | 34 | Puzzle p; |
35 | p.NewGrid(6, 6); | 35 | p.NewGrid(6, 6); |
36 | 36 | ||
37 | // @Bug: Mid-segment endpoints are not yet supported. | ||
37 | switch (Random::RandInt(1, 4)) { | 38 | switch (Random::RandInt(1, 4)) { |
38 | case 1: | 39 | case 1: |
39 | p.grid[Random::RandInt(0, p.width-1)][0].end = Cell::Dir::UP; | 40 | p.grid[Random::RandInt(0, p.width-1)][0].end = Cell::Dir::UP; |
@@ -93,6 +94,7 @@ void Randomizer2::RandomizeTutorial() { | |||
93 | p.grid[12][12].start = true; | 94 | p.grid[12][12].start = true; |
94 | p.grid[6][0].end = Cell::Dir::UP; | 95 | p.grid[6][0].end = Cell::Dir::UP; |
95 | 96 | ||
97 | // @Cleanup | ||
96 | std::vector<Pos> cuts; | 98 | std::vector<Pos> cuts; |
97 | bool toTheRight; | 99 | bool toTheRight; |
98 | // Start by generating a cut line, to ensure one of the two startpoints is inaccessible | 100 | // Start by generating a cut line, to ensure one of the two startpoints is inaccessible |