Created
February 20, 2022 04:55
-
-
Save darius/5accb793f0809cc90820b862e35cc836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- semantle.js 2022-02-19 22:16:27.654749238 -0600 | |
+++ semantle_untested.js 2022-02-19 22:50:24.281830204 -0600 | |
@@ -119,7 +119,13 @@ | |
if (oldGuess === guess) { | |
color = '#cc00cc'; | |
} else { | |
- color = '#000000'; | |
+ // XXX untested | |
+ let guessCount = guessed.size; | |
+ if (guessCount - 3 < guessNumber) { // Is this one of the most recent guesses? | |
+ color = '#aa00aa'; // I dunno how this looks -- try it | |
+ } else { | |
+ color = '#000000'; | |
+ } | |
} | |
return `<tr><td>${guessNumber}</td><td style="color:${color}" onclick="select('${oldGuess}', secretVec);">${oldGuess}</td><td>${similarity.toFixed(2)}</td><td class="${cls}">${percentileText}${progress} | |
</td></tr>`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment