From 53c1e08d84f3dc145abd6d13c40cc629a2ff2c09 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 20 Mar 2023 20:40:13 -0400 Subject: Added magenta and lime clues --- lingo.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lingo.cpp b/lingo.cpp index 4a19dd3..d252b6d 100644 --- a/lingo.cpp +++ b/lingo.cpp @@ -40,6 +40,8 @@ enum Colour { kYellow, kGreen, kOrange, + kMagenta, + kLime, kColourCount }; @@ -53,6 +55,8 @@ const std::string COLOUR_EMOJIS[kColourCount] = { "🟨", "🟩", "🟧", + "MAGENTA", + "LIME", }; const std::string NONE_EMOTE = "<:xx:1047267830535557180>"; @@ -67,6 +71,8 @@ const std::string COLOUR_EMOTES[kColourCount] = { "<:yw:1047262152781737986>", "<:gn:1047262141914304633>", "<:or:1047262144934182983>", + "<:mg:1087531573580136578>", + "<:lm:1087531573580136578>", }; enum FilterDirection { @@ -235,6 +241,32 @@ verbly::filter makeHintFilter(verbly::filter subfilter, Height height, Colour co } break; } + case kLime: { + switch (height) { + case kBottom: { + if (filter_direction == kTowardSolution) + { + return (verbly::notion::hyponyms %= subfilter); + } else { + return (verbly::notion::hypernyms %= subfilter); + } + } + default: break; // Not supported yet. + } + } + case kMagenta: { + switch (height) { + case kBottom: { + if (filter_direction == kTowardSolution) + { + return (verbly::notion::hypernyms %= subfilter); + } else { + return (verbly::notion::hyponyms %= subfilter); + } + } + default: break; // Not supported yet. + } + } case kGreen: { if (filter_direction == kTowardSolution) { @@ -576,6 +608,8 @@ private: {kBottom, kRed}, {kBottom, kBlue}, {kBottom, kGreen}, + {kBottom, kMagenta}, + {kBottom, kLime}, }; std::set> expensive_hints = { -- cgit 1.4.1