diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-20 10:05:59 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-20 10:05:59 -0800 |
commit | 6f0a34bfb761d965bd961dc1f880b84e35f9959f (patch) | |
tree | 9fad4b4d98f5cb644b635c017a959dd3752a0399 /Source/Puzzle.h | |
parent | ab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1 (diff) | |
download | witness-tutorializer-6f0a34bfb761d965bd961dc1f880b84e35f9959f.tar.gz witness-tutorializer-6f0a34bfb761d965bd961dc1f880b84e35f9959f.tar.bz2 witness-tutorializer-6f0a34bfb761d965bd961dc1f880b84e35f9959f.zip |
Understanding symmetry, but nothing else.
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; |