Format fixes in 2024/burton/README.md

I did not check typos and I might or might not have gone through the
whole file. The format fixes were mostly if not entirely for code blocks
not having the language in comments (or missing language).

Rebuilt index.html.
This commit is contained in:
Cody Boone Ferguson committed 2025-09-28 04:01:58 -07:00
1 parent 8bfd42305d
commit ff28374f69
2 files changed
+42 -46

No files matched your search

+26 -26
View File
@@ -107,7 +107,7 @@ and one of them is marked black and the other non-black,
this program MUST have the black letter marked *yellow*. this program MUST have the black letter marked *yellow*.
The example session (Wordle 228) below demonstrates this: The example session (Wordle 228) below demonstrates this:
``` ``` <!---sh-->
# do NOT do this # do NOT do this
$ ./prog dict $ ./prog dict
? terns bbbby ? terns bbbby
@@ -138,7 +138,7 @@ The included simulator `gen` produces the required transformation of b -> y.
The extra program `run` connects `gen` and `prog`, allowing for quick tests. The extra program `run` connects `gen` and `prog`, allowing for quick tests.
``` ``` <!---sh-->
make tools make tools
./run dict terns shock # test starting guess `terns` against target `shock` ./run dict terns shock # test starting guess `terns` against target `shock`
``` ```
@@ -207,7 +207,7 @@ increases the average number of guesses and the failure rate.
- Wordle is spelled in the code several different ways, one is obscure. - Wordle is spelled in the code several different ways, one is obscure.
If you need help, try this command (which requires `clang-format`): If you need help, try this command (which requires `clang-format`):
``` ``` <!---sh-->
make spoiler make spoiler
``` ```
@@ -277,7 +277,7 @@ why `/usr/share/dict/words` scores worse than `dict` - and loses more often.
April 9, 2023, this problem repeated with the target word `snafu`. April 9, 2023, this problem repeated with the target word `snafu`.
That seems apropos. That seems apropos.
``` ``` <!---sh-->
$ ./prog dict $ ./prog dict
blast bbgyb blast bbgyb
share gbgbb share gbgbb
@@ -294,7 +294,7 @@ That seems apropos.
And on June 9, 2023, again. This time, it cost nothing, and won on the And on June 9, 2023, again. This time, it cost nothing, and won on the
second guess. second guess.
``` ``` <!---sh-->
$ ./prog dict $ ./prog dict
blast gyygb blast gyygb
xyzzy xyzzy
@@ -306,7 +306,7 @@ second guess.
June 19, 2023, another one wasn't working, so time for a better dictionary: June 19, 2023, another one wasn't working, so time for a better dictionary:
``` ``` <!---sh-->
$ ./prog dict $ ./prog dict
blast bbybb blast bbybb
ramen bgbbb ramen bgbbb
@@ -337,7 +337,7 @@ As of June 19, 2023, it is known that at least these words have been added
See the [extra.html](extra.html) for more details on the program `run`: See the [extra.html](extra.html) for more details on the program `run`:
``` ``` <!---sh-->
for n in guano snafu balsa kazoo; do for n in guano snafu balsa kazoo; do
./run usdw blast $n; ./run usdw blast $n;
done | grep good done | grep good
@@ -345,7 +345,7 @@ See the [extra.html](extra.html) for more details on the program `run`:
As of April 22, 2024, add the word `laser` in 3 guesses. As of April 22, 2024, add the word `laser` in 3 guesses.
``` ``` <!---sh-->
$ ./prog usdw $ ./prog usdw
blast byyyb blast byyyb
solea ybygy solea ybygy
@@ -354,14 +354,14 @@ As of April 22, 2024, add the word `laser` in 3 guesses.
And May 8, 2024 brings on `pious` in 4 guesses (after the failure with `dict`): And May 8, 2024 brings on `pious` in 4 guesses (after the failure with `dict`):
``` ``` <!---sh-->
$ prog dict $ ./prog dict
blast bbbyb blast bbbyb
siren ygbbb siren ygbbb
ficus bgbgg ficus bgbgg
xyzzy xyzzy
$ prog usdw $ ./prog usdw
? blast bbbyb ? blast bbbyb
serio serio
? siren ygbbb ? siren ygbbb
@@ -375,7 +375,7 @@ Notice here that the suggested word was NOT used, instead the original
guesses were used, and it found the correct answer in 4 guesses. guesses were used, and it found the correct answer in 4 guesses.
However, doing However, doing
``` ``` <!---sh-->
./run usdw blast pious ./run usdw blast pious
``` ```
@@ -383,12 +383,12 @@ gets the answer correct in 3 guesses: blast > serio > pious.
And Sep 17, 2024 brings us the word `beaut`. And Sep 17, 2024 brings us the word `beaut`.
``` ``` <!---sh-->
$ prog dict $ ./prog dict
blast gbgbg blast gbgbg
xyzzy xyzzy
$ prog usdw $ ./prog usdw
blast gbgbgb blast gbgbgb
beant -- not allowed, so removed beant from usdw beant -- not allowed, so removed beant from usdw
brant gbgbg brant gbgbg
@@ -401,14 +401,14 @@ of `/usr/share/dict/words` has more cromulent words.
Oct 9, 2024 brings the word `mommy`. Oct 9, 2024 brings the word `mommy`.
``` ``` <!---sh-->
$ prog dict $ ./prog dict
blast bbbbb blast bbbbb
drone bbybb drone bbybb
pouch bgbbb pouch bgbbb
foggy bgbbg foggy bgbbg
$ prog usdw $ ./prog usdw
blast bbbbb blast bbbbb
drone bbybb drone bbybb
pouch bgbbb pouch bgbbb
@@ -421,7 +421,7 @@ dictionary still allows you to switch dictionaries and win.
Nov 13, 2024 brings `primp`. Nov 13, 2024 brings `primp`.
``` ``` <!---sh-->
$ ./prog dict $ ./prog dict
blast bbbbb blast bbbbb
drone bgbbb drone bgbbb
@@ -437,7 +437,7 @@ Nov 13, 2024 brings `primp`.
Jan 20, 2025 brings the word `squid`. Jan 20, 2025 brings the word `squid`.
``` ``` <!---sh-->
$ ./prog dict $ ./prog dict
blast bbbyb blast bbbyb
siren gybbb siren gybbb
@@ -470,7 +470,7 @@ As of Jan 20, 2025, the ten known words not in `dict` are
Feb 18, 2025 adds a word not in `dict` nor `usdw`. "indie". Feb 18, 2025 adds a word not in `dict` nor `usdw`. "indie".
``` ``` <!---sh-->
$ ./prog dict $ ./prog dict
blast bbbbb blast bbbbb
drone ybbyg drone ybbyg
@@ -482,20 +482,20 @@ Feb 18, 2025 adds a word not in `dict` nor `usdw`. "indie".
drone ybbyg drone ybbyg
undue bggbg undue bggbg
xyzzy xyzzy
```
I grep'd the dictionaries. No plausbile hits. I grep'd the dictionaries. No plausbile hits.
So I solved it the old fashioned way: I guessed. So I solved it the old fashioned way: I guessed.
blast bbbbb blast bbbbb
drone ybbyg drone ybbyg
undue bggbg undue bggbg
indie ggggg indie ggggg
This solved it in 4, but the program could not win. This solved it in 4, but the program could not win.
So add to the summary list above: So add to the summary list above:
indie 4 indie 4
```
### Compilation ### Compilation
+16 -20
View File
@@ -717,13 +717,13 @@ second guess.</p>
solea ybygy solea ybygy
laser ggggg</code></pre> laser ggggg</code></pre>
<p>And May 8, 2024 brings on <code>pious</code> in 4 guesses (after the failure with <code>dict</code>):</p> <p>And May 8, 2024 brings on <code>pious</code> in 4 guesses (after the failure with <code>dict</code>):</p>
<pre><code> $ prog dict <pre><code> $ ./prog dict
blast bbbyb blast bbbyb
siren ygbbb siren ygbbb
ficus bgbgg ficus bgbgg
xyzzy xyzzy
$ prog usdw $ ./prog usdw
? blast bbbyb ? blast bbbyb
serio serio
? siren ygbbb ? siren ygbbb
@@ -737,11 +737,11 @@ However, doing</p>
<pre><code> ./run usdw blast pious</code></pre> <pre><code> ./run usdw blast pious</code></pre>
<p>gets the answer correct in 3 guesses: blast &gt; serio &gt; pious.</p> <p>gets the answer correct in 3 guesses: blast &gt; serio &gt; pious.</p>
<p>And Sep 17, 2024 brings us the word <code>beaut</code>.</p> <p>And Sep 17, 2024 brings us the word <code>beaut</code>.</p>
<pre><code> $ prog dict <pre><code> $ ./prog dict
blast gbgbg blast gbgbg
xyzzy xyzzy
$ prog usdw $ ./prog usdw
blast gbgbgb blast gbgbgb
beant -- not allowed, so removed beant from usdw beant -- not allowed, so removed beant from usdw
brant gbgbg brant gbgbg
@@ -750,13 +750,13 @@ However, doing</p>
This word isn’t even a word I can find in Webster’s. I hope your version This word isn’t even a word I can find in Webster’s. I hope your version
of <code>/usr/share/dict/words</code> has more cromulent words.</p> of <code>/usr/share/dict/words</code> has more cromulent words.</p>
<p>Oct 9, 2024 brings the word <code>mommy</code>.</p> <p>Oct 9, 2024 brings the word <code>mommy</code>.</p>
<pre><code> $ prog dict <pre><code> $ ./prog dict
blast bbbbb blast bbbbb
drone bbybb drone bbybb
pouch bgbbb pouch bgbbb
foggy bgbbg foggy bgbbg
$ prog usdw $ ./prog usdw
blast bbbbb blast bbbbb
drone bbybb drone bbybb
pouch bgbbb pouch bgbbb
@@ -812,20 +812,16 @@ dictionary still allows you to switch dictionaries and win.</p>
blast bbbbb blast bbbbb
drone ybbyg drone ybbyg
undue bggbg undue bggbg
xyzzy xyzzy</code></pre>
<p>I grep’d the dictionaries. No plausbile hits.
I grep&#39;d the dictionaries. No plausbile hits. So I solved it the old fashioned way: I guessed.</p>
So I solved it the old fashioned way: I guessed. <p>blast bbbbb
drone ybbyg
blast bbbbb undue bggbg
drone ybbyg indie ggggg</p>
undue bggbg <p>This solved it in 4, but the program could not win.
indie ggggg So add to the summary list above:</p>
<p>indie 4</p>
This solved it in 4, but the program could not win.
So add to the summary list above:
indie 4</code></pre>
<h3 id="compilation">Compilation</h3> <h3 id="compilation">Compilation</h3>
<p>Compiles cleanly with <code>-Wall -Wpedantic -Wextra</code>, <p>Compiles cleanly with <code>-Wall -Wpedantic -Wextra</code>,
on MACOS M2 Clang/GCC 14 and Linux X86 Gcc 8.5.</p> on MACOS M2 Clang/GCC 14 and Linux X86 Gcc 8.5.</p>