summary refs log tree commit diff stats
path: root/lingo.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-12 20:13:31 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-12 20:13:31 -0500
commit80a544add942f182f385f56e61fe357e9365f99e (patch)
treed9629e96fe25d050520a7cce276998cad708a760 /lingo.cpp
parentc7af4afb25a3fc082624960007e17b09b29887d8 (diff)
downloadlingo-80a544add942f182f385f56e61fe357e9365f99e.tar.gz
lingo-80a544add942f182f385f56e61fe357e9365f99e.tar.bz2
lingo-80a544add942f182f385f56e61fe357e9365f99e.zip
Reject middle purple clues that are the same as the solution
Diffstat (limited to 'lingo.cpp')
-rw-r--r--lingo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lingo.cpp b/lingo.cpp index 04ab14c..809685e 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -442,6 +442,9 @@ private:
442 { 442 {
443 return !database_->forms((verbly::filter)clue && (verbly::form::merographs %= solution)).all().empty() 443 return !database_->forms((verbly::filter)clue && (verbly::form::merographs %= solution)).all().empty()
444 || !database_->forms((verbly::filter)clue && (verbly::form::holographs %= solution)).all().empty(); 444 || !database_->forms((verbly::filter)clue && (verbly::form::holographs %= solution)).all().empty();
445 } else if (height == kMiddle && colour == kPurple)
446 {
447 return clue.getId() == solution.getId();
445 } 448 }
446 return false; 449 return false;
447 } 450 }