diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-05-02 11:04:24 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-05-02 11:04:24 -0400 |
| commit | 92d38c23b1dbbbae6e439f1420c27d6cf1882aea (patch) | |
| tree | 41840e8f9f7647967559f859d59c807c774c52b1 | |
| parent | da493a874bb50f9d16946d45faf8dc5a0a314e3a (diff) | |
| download | gurglesolver-zachster.tar.gz | |
readme: add zachster
| -rw-r--r-- | README | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/README b/README new file mode 100644 index 0000000..fe0b718 --- /dev/null +++ b/README @@ -0,0 +1,66 @@ +These utilities help to solve gurgle puzzles. + + +STRATEGY + +1. Figure out what letters you need +2. Guess the word + + +WHAT YOU NEED + +two files: +* solutions.txt +* guessable.txt +(a basic 5-letter-word list will suffice for both) + +posix-compatible programs: +* sh +* grep +* wc +* cat +* tr +* test +* echo +* sort +* uniq +* awk + + +UTILITIES + +* has.sh: filter program for the correct letter in an incorrect position. Called by gurg.sh +* gurg.sh: creates multiple filters for a guess in Guess Syntax +* whatToDo.sh: Gives advice on whether to guess the word, or guess unguessed letters. Has optional threshold parameter. + + +GUESS SYNTAX + +guess G.esS + +you guessed the word `guess`, and +* the G was in the correct position +* the U was not present +* the E was in the incorrect position +* the fourth s was in the incorrect position +* the fifth S was in the correct position. + + +EXAMPLE + +```sh +cat solutions.txt | ./whatToDo.sh guessable.txt +# Outputs the Letter Frequency, +# and words that contain the Most Frequent letters. +cat solutions.txt | ./gurg.sh guess ..e.S | ./whatToDo.sh guessable.txt +# Outputs LF and words that contain MF *unguessed* letters. +cat solutions.txt |./gurg.sh guess ..e.S | ./gurg.sh ratio .at.. |./whatToDo.sh guessable.txt +# Outputs a list of Possible Solutions +cat solutions.txt |./gurg.sh guess ..e.S | ./gurg.sh ratio .at.. |./whatToDo.sh guessable.txt 5 +# Outputs LF +``` + + +CAVEATS + +Currently only supports 5-letter puzzles using ascii characters. Patches welcome. |
