about summary refs log tree commit diff stats
path: root/Source/Randomizer2Core.cpp
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-24 13:56:33 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-24 13:56:33 -0800
commit88ad92c9382a68532503a351b053de024d116774 (patch)
tree84c415d59c1ddc5b8be7751ef33f1bbdb0c11203 /Source/Randomizer2Core.cpp
parent3c408f7535fb10118cc8ff219629b6fac0ceabde (diff)
downloadwitness-tutorializer-88ad92c9382a68532503a351b053de024d116774.tar.gz
witness-tutorializer-88ad92c9382a68532503a351b053de024d116774.tar.bz2
witness-tutorializer-88ad92c9382a68532503a351b053de024d116774.zip
next puzzle
Diffstat (limited to 'Source/Randomizer2Core.cpp')
-rw-r--r--Source/Randomizer2Core.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Randomizer2Core.cpp b/Source/Randomizer2Core.cpp index 5cae049..ceb726b 100644 --- a/Source/Randomizer2Core.cpp +++ b/Source/Randomizer2Core.cpp
@@ -24,6 +24,11 @@ std::vector<Pos> Randomizer2Core::CutSymmetricalEdgePairs(const Puzzle& p, size_
24 for (int y=0; y<p.height; y++) { 24 for (int y=0; y<p.height; y++) {
25 copy.grid[p.width/2][y].gap = Cell::Gap::FULL; 25 copy.grid[p.width/2][y].gap = Cell::Gap::FULL;
26 } 26 }
27 } else {
28 // The puzzle has an odd width (e.g. 3x3), but we still need to cut the midline.
29 for (int y=0; y<p.height; y++) {
30 copy.grid[p.width/2][y].gap = Cell::Gap::FULL;
31 }
27 } 32 }
28 33
29 return CutEdgesInternal(copy, 0, (p.width-1)/2, 0, p.height, numEdges); 34 return CutEdgesInternal(copy, 0, (p.width-1)/2, 0, p.height, numEdges);