diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-22 09:37:10 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-11-22 09:37:10 -0800 |
commit | cbdf87bb8aaebca9c969dfec3c1664b9b6355a0d (patch) | |
tree | 569725790fbb8772c7e19305be287f08652ff979 /Source/Puzzle.h | |
parent | 859cfdb86d57bb230f1200c3a4c76c55ca920199 (diff) | |
download | witness-tutorializer-cbdf87bb8aaebca9c969dfec3c1664b9b6355a0d.tar.gz witness-tutorializer-cbdf87bb8aaebca9c969dfec3c1664b9b6355a0d.tar.bz2 witness-tutorializer-cbdf87bb8aaebca9c969dfec3c1664b9b6355a0d.zip |
Asymmetrical gaps
Diffstat (limited to 'Source/Puzzle.h')
-rw-r--r-- | Source/Puzzle.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Puzzle.h b/Source/Puzzle.h index 8afb9ca..b7dedd5 100644 --- a/Source/Puzzle.h +++ b/Source/Puzzle.h | |||
@@ -62,10 +62,12 @@ struct Cell { | |||
62 | 62 | ||
63 | struct Negation {}; | 63 | struct Negation {}; |
64 | struct Pos { | 64 | struct Pos { |
65 | Pos() = default; // Required for use in std::maps | ||
65 | Pos(int x_, int y_) : x(x_), y(y_) {} | 66 | 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 | Pos(const std::tuple<int, int>& xy) : x(std::get<0>(xy)), y(std::get<1>(xy)) {} |
67 | int x; | 68 | bool operator==(Pos other) {return x == other.x && y == other.y;} |
68 | int y; | 69 | int x = 0; |
70 | int y = 0; | ||
69 | }; | 71 | }; |
70 | 72 | ||
71 | class Puzzle { | 73 | class Puzzle { |