about summary refs log tree commit diff stats
path: root/Source/Puzzle.h
diff options
context:
space:
mode:
authorjbzdarkid <jbzdarkid@gmail.com>2019-11-20 10:05:59 -0800
committerjbzdarkid <jbzdarkid@gmail.com>2019-11-20 10:05:59 -0800
commit6f0a34bfb761d965bd961dc1f880b84e35f9959f (patch)
tree9fad4b4d98f5cb644b635c017a959dd3752a0399 /Source/Puzzle.h
parentab5652329d3e6bbaaf338e47fb3d84d89bf9b7b1 (diff)
downloadwitness-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.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;