summary refs log tree commit diff stats
path: root/Source/Randomizer2.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-19 09:59:59 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-19 09:59:59 -0800
commitab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1 (patch)
tree352bbf485dee4cc8f465d928b131524ca7329d5e /Source/Randomizer2.cpp
parent52b01775c2c94f08786696cae7836ca56f683739 (diff)
downloadwitness-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.cpp2
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