From 42d4067a16d826f0941d72df885111ef06ed3d7a Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 2 Dec 2019 10:01:28 -0800 Subject: Glass factory... done! --- Source/Randomizer2.cpp | 47 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) (limited to 'Source/Randomizer2.cpp') diff --git a/Source/Randomizer2.cpp b/Source/Randomizer2.cpp index b1cdc1f..db90f4c 100644 --- a/Source/Randomizer2.cpp +++ b/Source/Randomizer2.cpp @@ -307,15 +307,12 @@ void Randomizer2::RandomizeSymmetry() { Puzzle p; p.NewGrid(4, 4); p.symmetry = Puzzle::Symmetry::XY; - p.grid[6][0].start = true; - p.grid[0][6].start = true; - p.grid[4][0].end = Cell::Dir::UP; - p.grid[2][6].end = Cell::Dir::DOWN; - - p.grid[5][0].gap = Cell::Gap::BREAK; - p.grid[1][6].gap = Cell::Gap::BREAK; + p.grid[8][0].start = true; + p.grid[0][8].start = true; + p.grid[0][0].end = Cell::Dir::LEFT; + p.grid[8][8].end = Cell::Dir::RIGHT; - std::vector cutEdges = Randomizer2Core::CutSymmetricalEdgePairs(p, 3); + std::vector cutEdges = Randomizer2Core::CutSymmetricalEdgePairs(p, 7); for (int i=0; i cutEdges = Randomizer2Core::CutSymmetricalEdgePairs(p, 15); + for (int i=0; i