From bec6f657f405cb27939ec42ae35c0cc9d524bbb9 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 1 Nov 2023 18:07:04 -0400 Subject: invisible symmetry! --- ext/wittle_generator/Panel.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ext/wittle_generator/Panel.cpp') 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() { } serializer.writeInt(0); - serializer.writeByte(Serializer::NegationsCancelNegations | - Serializer::PrecisePolyominos | - Serializer::FlashForErrors); + + char settings = Serializer::NegationsCancelNegations | + Serializer::PrecisePolyominos | Serializer::FlashForErrors; + if (_invisible_symmetry) { + settings |= Serializer::InvisibleSymmetry; + } + serializer.writeByte(settings); return serializer.str(); } -- cgit 1.4.1