Message Boards Message Boards

n-Wordle: choose the word length & number of words to solve

enter image description here

POSTED BY: Raghav Bhat
4 Replies
Posted 1 year ago

Thanks for a fun game! Some quick thoughts:

1) If you use a TextGrid (instead of Grid) with a monospaced font you can avoid the line lengths differing (as they do in the picture at the top of your post).

2) The While logic is can be simplified a little:

While[And[input != "STOPNOW", 
  StringLength[input] != StringLength[word] || !DictionaryWordQ[ToLowerCase[input]]],
 Print["Invalid entry: \"", input, "\". Please check word length and validity."];

-Joe

POSTED BY: Joe Gilray

Congratulations! Your post was highlighted on the Wolfram's official social media channels. Thank you for your contribution. We are looking forward to your future posts.

POSTED BY: EDITORIAL BOARD

Interesting idea and implementation. Congratulations!

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract