MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB技术文章 (https://www.labfans.com/bbs/forumdisplay.php?f=25)
-   -   Three Wordle Assistants - Cleve Moler on Mathematics and Computing (https://www.labfans.com/bbs/showthread.php?t=27383)

poster 2023-03-28 12:20

Three Wordle Assistants - Cleve Moler on Mathematics and Computing
 
<div class="content">When I tackle a Wordle puzzle, I like to make all the key decisions myself. My three assistants set up puzzles and suggest words when I ask for help, but I guide the actual solution. My assistants also make it possible for me to play Wordle anywhere, anytime, even when my laptop is in airplane mode. I don't need the [I]New York Times[/I] or access to the Web.

[B]Contents[/B]
[LIST][*][URL="https://www.labfans.com/bbs/#dacb9b49-209b-4bd4-9600-ddcbf92f222e"]Three Assistants[/URL][*][URL="https://www.labfans.com/bbs/#9a0fa3c8-2ea4-4e0d-8679-69e40f59921c"]Vocabulary[/URL][*][URL="https://www.labfans.com/bbs/#fef3bbd2-49bf-47e0-b344-69a2b844ce95"]Words[/URL][*][URL="https://www.labfans.com/bbs/#313da354-b5c6-4675-929e-3bbe89e7a74a"]Wordle[/URL][*][URL="https://www.labfans.com/bbs/#bc74a1cc-f3c3-4b86-bd1b-7a19d18b8d36"]NYT[/URL][*][URL="https://www.labfans.com/bbs/#a2a62471-6d35-4253-8c11-b0de6725afd4"]Pared Down[/URL][*][URL="https://www.labfans.com/bbs/#3634c294-6419-4ca0-9339-7a1e50630492"]Five Golds[/URL][*][URL="https://www.labfans.com/bbs/#fb298646-e9d7-4395-ba63-3e8d2607dc82"]Thanks[/URL][*][URL="https://www.labfans.com/bbs/#3daf42e9-4815-4553-9b08-c2945d557011"]Software[/URL][/LIST][B]Three Assistants[/B]

Wordler, Words and Wordie are the three assistants. Wordler replaces the [I]Times[/I] by generating puzzles and evaluating responses. Words provides lists of possible responses. Wordie handles the Wordler Window and colors the letters gray, green or gold.

[B]Vocabulary[/B]

Words has a vocabulary of 4665 five-letter English words. Any of them are acceptable responses. The vocabulary begins with

vocab = [ ... "ABEAM" "ABETS" "ABHOR" "ABIDE" "ABLED" "ABLER" "ABODE" "ABORT" ...And, 584 lines later, ends with

"ZILCH" "ZINCS" "ZINGS" "ZIPPY" "ZOMBI" "ZONAL" "ZONED" "ZONES" ... "ZOOMS" ];If you were to print the entire vocabulary with 40 lines per page, you would print over 100 pages of words.

[B]Words[/B]

It took me a long time to write the Words assistant, which is called whenever the Words button in the Wordle Window is clicked.

[IMG]http://blogs.mathworks.com/cleve/files/ratio.gif[/IMG]


Words is supported by a seventeen-program library of functions named Wordspq where p and q are nonnegative integers with p+q


所有时间均为北京时间。现在的时间是 23:39

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.