From 80a544add942f182f385f56e61fe357e9365f99e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 12 Dec 2022 20:13:31 -0500 Subject: Reject middle purple clues that are the same as the solution --- lingo.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lingo.cpp b/lingo.cpp index 04ab14c..809685e 100644 --- a/lingo.cpp +++ b/lingo.cpp @@ -442,6 +442,9 @@ private: { return !database_->forms((verbly::filter)clue && (verbly::form::merographs %= solution)).all().empty() || !database_->forms((verbly::filter)clue && (verbly::form::holographs %= solution)).all().empty(); + } else if (height == kMiddle && colour == kPurple) + { + return clue.getId() == solution.getId(); } return false; } -- cgit 1.4.1