From cfcbc9697a77ea949c481827ada4dfd5d6bb6a4f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 18 Feb 2023 09:36:43 -0500 Subject: 50% chance of rerolling easy clues --- lingo.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lingo.cpp b/lingo.cpp index 4c95fcf..4a19dd3 100644 --- a/lingo.cpp +++ b/lingo.cpp @@ -687,6 +687,16 @@ private: continue; } + if (parts[kMiddle] == kWhite + || parts[kMiddle] == kGreen + || parts[kTop] == kWhite + || parts[kMiddle] == kBlack) { + if (std::bernoulli_distribution(0.5)(rng_)) { + std::cout << "Easy clue, rerolling..." << std::endl; + continue; + } + } + std::string orange_clue; std::string orange_solution; if (orange_uses > 0) -- cgit 1.4.1