Think about Loose Coupling | |
PerlMonks |
Re^2: using perl to find words for scrabbleby Aldebaran (Curate) |
on Sep 16, 2019 at 22:31 UTC ( [id://11106266]=note: print w/replies, xml ) | Need Help?? |
Typical output:
...indeed, as I can replicate. Thanks for your post. Yours has the advantage of getting up and running quickly and having some form of probability to try different combinations.
I know, poop, ha-ha, but who knew pipy and pogy were english words? It seems to me that the method of letter generation should reflect the distribution of a given game and that a hash would be the appropriate data structure to do so. What is an elegant way to initialize the 26 key-value pairs? Frankly, there has to be a lot of initialization to pull off any game.... distribution of letters in scrabble Thanks for your comments
In Section
Seekers of Perl Wisdom
|
|