summary refs log tree commit diff stats
path: root/lingo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lingo.cpp')
-rw-r--r--lingo.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/lingo.cpp b/lingo.cpp index 30b46ab..439bab5 100644 --- a/lingo.cpp +++ b/lingo.cpp
@@ -44,6 +44,18 @@ const std::string COLOUR_EMOJIS[kColourCount] = {
44 "🟨" 44 "🟨"
45}; 45};
46 46
47const std::string NONE_EMOTE = "<:xx:1047267830535557180>";
48
49const std::string COLOUR_EMOTES[kColourCount] = {
50 "<:wt:1047262151032713267>",
51 "<:bk:1047262137082445965>",
52 "<:rd:1047262147933122560>",
53 "<:bl:1047262138202325042>",
54 "<:pr:1047262146926489691>",
55 "<:bn:1047262139187998790>",
56 "<:yw:1047262152781737986>"
57};
58
47enum FilterDirection { 59enum FilterDirection {
48 kTowardSolution, 60 kTowardSolution,
49 kTowardQuestion 61 kTowardQuestion
@@ -370,11 +382,11 @@ private:
370 if (colour.has_value()) { 382 if (colour.has_value()) {
371 verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion); 383 verbly::filter questionFilter = makeHintFilter(solution, height, *colour, kTowardQuestion);
372 verbly::form questionPart = database_->forms(questionFilter && cleanFilter).first(); 384 verbly::form questionPart = database_->forms(questionFilter && cleanFilter).first();
373 msg_stream << COLOUR_EMOJIS[*colour] << " " << questionPart.getText() << std::endl; 385 msg_stream << COLOUR_EMOTES[*colour] << " " << questionPart.getText() << std::endl;
374 386
375 admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution); 387 admissible &= makeHintFilter(questionPart, height, *colour, kTowardSolution);
376 } else { 388 } else {
377 msg_stream << "▪️" << std::endl; 389 msg_stream << NONE_EMOTE << std::endl;
378 } 390 }
379 } 391 }
380 std::string spaceless = solution.getText(); 392 std::string spaceless = solution.getText();