From 00d641c5c70d1b1141dafb7b297ca18f259b6af0 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Tue, 3 Dec 2019 09:37:42 -0800 Subject: Uncomment symmetry for traversal --- Source/Solver.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Solver.cpp b/Source/Solver.cpp index ac660a2..2813027 100644 --- a/Source/Solver.cpp +++ b/Source/Solver.cpp @@ -32,7 +32,6 @@ void Solver::SolveLoop(Puzzle& p, int x, int y, std::vector& solutions) p.grid[x][y].color = Cell::Color::BLACK; // Otherwise, mark this cell as visited p.sequence.emplace_back(x, y); } else { - /* // Get the symmetrical position, and try coloring it auto sym = p.GetSymmetricalPos(x, y); Cell::Color oldColor = p.GetLine(sym.x, sym.y); @@ -40,11 +39,10 @@ void Solver::SolveLoop(Puzzle& p, int x, int y, std::vector& solutions) // Collided with ourselves or our reflection if (cell.color != Cell::Color::NONE) { - p.grid[sym.x, sym.y].color = oldColor; + p.grid[sym.x][sym.y].color = oldColor; return; } p.grid[x][y].color = Cell::Color::BLUE; // Otherwise, mark this cell as visited - */ } if (cell.end != Cell::Dir::NONE) { @@ -72,9 +70,7 @@ void Solver::SolveLoop(Puzzle& p, int x, int y, std::vector& solutions) p.grid[x][y].color = Cell::Color::NONE; p.sequence.pop_back(); if (p.symmetry != Puzzle::Symmetry::NONE) { - /* auto sym = p.GetSymmetricalPos(x, y); p.grid[sym.x][sym.y].color = Cell::Color::NONE; - */ } } -- cgit 1.4.1