From 6f0a34bfb761d965bd961dc1f880b84e35f9959f Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Wed, 20 Nov 2019 10:05:59 -0800 Subject: Understanding symmetry, but nothing else. --- Source/Puzzle.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Source/Puzzle.h') diff --git a/Source/Puzzle.h b/Source/Puzzle.h index 1e00ef4..ac604f1 100644 --- a/Source/Puzzle.h +++ b/Source/Puzzle.h @@ -61,7 +61,12 @@ struct Cell { }; struct Negation {}; -struct Pos {int x; int y;}; +struct Pos { + Pos(int x_, int y_) : x(x_), y(y_) {} + Pos(const std::tuple& xy) : x(std::get<0>(xy)), y(std::get<1>(xy)) {} + int x; + int y; +}; class Puzzle { public: @@ -70,7 +75,7 @@ public: bool hasDecorations = false; enum class Symmetry {NONE, X, Y, XY}; - Symmetry sym = Symmetry::NONE; + Symmetry symmetry = Symmetry::NONE; bool pillar = false; bool valid = false; -- cgit 1.4.1