about summary refs log tree commit diff stats
path: root/ext/wittle_generator/Panel.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-01 18:07:04 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-01 18:07:04 -0400
commitbec6f657f405cb27939ec42ae35c0cc9d524bbb9 (patch)
treed7cef60e532041b650ef9c54c8645607f21c3b12 /ext/wittle_generator/Panel.cpp
parent63624385ccc66f6a2f40797baad1972957e34863 (diff)
downloadwittle-bec6f657f405cb27939ec42ae35c0cc9d524bbb9.tar.gz
wittle-bec6f657f405cb27939ec42ae35c0cc9d524bbb9.tar.bz2
wittle-bec6f657f405cb27939ec42ae35c0cc9d524bbb9.zip
invisible symmetry!
Diffstat (limited to 'ext/wittle_generator/Panel.cpp')
-rw-r--r--ext/wittle_generator/Panel.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/wittle_generator/Panel.cpp b/ext/wittle_generator/Panel.cpp index 892d4cc..879d205 100644 --- a/ext/wittle_generator/Panel.cpp +++ b/ext/wittle_generator/Panel.cpp
@@ -225,9 +225,13 @@ std::string Panel::Write() {
225 } 225 }
226 226
227 serializer.writeInt(0); 227 serializer.writeInt(0);
228 serializer.writeByte(Serializer::NegationsCancelNegations | 228
229 Serializer::PrecisePolyominos | 229 char settings = Serializer::NegationsCancelNegations |
230 Serializer::FlashForErrors); 230 Serializer::PrecisePolyominos | Serializer::FlashForErrors;
231 if (_invisible_symmetry) {
232 settings |= Serializer::InvisibleSymmetry;
233 }
234 serializer.writeByte(settings);
231 235
232 return serializer.str(); 236 return serializer.str();
233} 237}