diff options
Diffstat (limited to 'Source/Puzzle.h')
-rw-r--r-- | Source/Puzzle.h | 9 |
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 | ||
63 | struct Negation {}; | 63 | struct Negation {}; |
64 | struct Pos {int x; int y;}; | 64 | struct 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 | ||
66 | class Puzzle { | 71 | class Puzzle { |
67 | public: | 72 | public: |
@@ -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; |