-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ecc4f73
commit dc9bd13
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## QWERTLE Optimizing Code | ||
|
||
This is Rust code designed to optimize the game (QWERTLE)[https://qwertle.friedman.in/]. In QWERTLE, like Wordle, you have six tries to guess a five letter word. Instead of a green, yellow, or black response to each guess letter, you get a gradient color telling you how far the answer letter is from the guess letter on a QWERTY keyboard. | ||
|
||
I used 'best' mode to find the best guess word. Among the answers, that's PAPAL, with 2,117 distinct possible responses. | ||
|
||
For PAPAL, run 'word' mode to generate a table of possible letters for each distance from each guess letter. It also lists the 'response score' for every possible Wordle answer. | ||
|
||
If stumped during play (or just to cheat egregiously), run 'qwertle answer_options papal \<score>` and the code will find and return the answers with the closest distance scores to the one you see in the puzzle. | ||
|
||
### Usage | ||
``` | ||
qwertle <mode> <args> | ||
MODES: | ||
best Find guess with the most distinct responses | ||
word <guess> For a guess, response for each answer, cluster vector, and letter guess table. | ||
letter_options <guess> <score> (lo) For a guess and score, show the possible letters at each position. | ||
answer_options <guess> <score> (ao) For a guess and score, show possible answers closest to the score. | ||
``` | ||
|
||
### Build | ||
|
||
Local: | ||
- Install Rust | ||
- cargo build -r | ||
|
||
Docker: | ||
- Install Docker | ||
- docker build -t scottlouvau/qwertle . | ||
(See 'test' script) |