From 1fec3be2bb57418fb6bb846c06e804b77c3695a8 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 15 Feb 2023 14:36:27 +0000 Subject: Two word middle reds should not point to just one of those words --- lingo.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lingo.cpp') diff --git a/lingo.cpp b/lingo.cpp index 4d9b480..a3da33a 100644 --- a/lingo.cpp +++ b/lingo.cpp @@ -456,6 +456,15 @@ private: } else if (height == kTop && colour == kPurple) { return clue.getId() == solution.getId(); + } else if (height == kMiddle && colour == kRed) { + if (clue.getComplexity() == 2 && solution.getComplexity() == 1) { + auto words = hatkirby::split>(clue.getText(), " "); + for (const auto& word : words) { + if (word == solution.getText()) { + return true; + } + } + } } return false; } -- cgit 1.4.1