summary refs log tree commit diff stats
path: root/Source/Puzzle.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Puzzle.h')
-rw-r--r--Source/Puzzle.h9
1 files changed, 7 insertions, 2 deletions
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 {
61}; 61};
62 62
63struct Negation {}; 63struct Negation {};
64struct Pos {int x; int y;}; 64struct Pos {
65 Pos(int x_, int y_) : x(x_), y(y_) {}
66 Pos(const std::tuple<int, int>& xy) : x(std::get<0>(xy)), y(std::get<1>(xy)) {}
67 int x;
68 int y;
69};
65 70
66class Puzzle { 71class Puzzle {
67public: 72public:
@@ -70,7 +75,7 @@ public:
70 bool hasDecorations = false; 75 bool hasDecorations = false;
71 76
72 enum class Symmetry {NONE, X, Y, XY}; 77 enum class Symmetry {NONE, X, Y, XY};
73 Symmetry sym = Symmetry::NONE; 78 Symmetry symmetry = Symmetry::NONE;
74 bool pillar = false; 79 bool pillar = false;
75 80
76 bool valid = false; 81 bool valid = false;