summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lingo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lingo.cpp b/lingo.cpp index 4d9b480..a3da33a 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -456,6 +456,15 @@ private:
456 } else if (height == kTop && colour == kPurple) 456 } else if (height == kTop && colour == kPurple)
457 { 457 {
458 return clue.getId() == solution.getId(); 458 return clue.getId() == solution.getId();
459 } else if (height == kMiddle && colour == kRed) {
460 if (clue.getComplexity() == 2 && solution.getComplexity() == 1) {
461 auto words = hatkirby::split<std::vector<std::string>>(clue.getText(), " ");
462 for (const auto& word : words) {
463 if (word == solution.getText()) {
464 return true;
465 }
466 }
467 }
459 } 468 }
460 return false; 469 return false;
461 } 470 }