diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-18 09:36:43 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-18 09:36:43 -0500 |
commit | cfcbc9697a77ea949c481827ada4dfd5d6bb6a4f (patch) | |
tree | 3c1d9615159722c6073f5f2694b8b037aadd793d /lingo.cpp | |
parent | 1cf317067d40fd64219b18e19c0772748affd726 (diff) | |
download | lingo-cfcbc9697a77ea949c481827ada4dfd5d6bb6a4f.tar.gz lingo-cfcbc9697a77ea949c481827ada4dfd5d6bb6a4f.tar.bz2 lingo-cfcbc9697a77ea949c481827ada4dfd5d6bb6a4f.zip |
50% chance of rerolling easy clues
Diffstat (limited to 'lingo.cpp')
-rw-r--r-- | lingo.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lingo.cpp b/lingo.cpp index 4c95fcf..4a19dd3 100644 --- a/lingo.cpp +++ b/lingo.cpp | |||
@@ -687,6 +687,16 @@ private: | |||
687 | continue; | 687 | continue; |
688 | } | 688 | } |
689 | 689 | ||
690 | if (parts[kMiddle] == kWhite | ||
691 | || parts[kMiddle] == kGreen | ||
692 | || parts[kTop] == kWhite | ||
693 | || parts[kMiddle] == kBlack) { | ||
694 | if (std::bernoulli_distribution(0.5)(rng_)) { | ||
695 | std::cout << "Easy clue, rerolling..." << std::endl; | ||
696 | continue; | ||
697 | } | ||
698 | } | ||
699 | |||
690 | std::string orange_clue; | 700 | std::string orange_clue; |
691 | std::string orange_solution; | 701 | std::string orange_solution; |
692 | if (orange_uses > 0) | 702 | if (orange_uses > 0) |