in reply to using perl to find words for scrabble

Cheat at Scrabble was what I came up with a year ago, but then I gave up because the scrabble games I was trying to beat all use the silly Scrabblesque not-really-words while my program uses the word dict on my computer.

Anyway might be of interest


The way forward always starts with a minimal test.
  • Comment on Re: using perl to find words for scrabble

Replies are listed 'Best First'.
Re^2: using perl to find words for scrabble
by Aldebaran (Curate) on Nov 01, 2019 at 07:09 UTC
    what I came up with a year ago, but then I gave up because the scrabble games I was trying to beat all use the silly Scrabblesque not-really-words while my program uses the word dict on my computer.

    Thanks for your post 1nickt. I learn something with each development. Getting the dictionary that counts for scrabble was super easy. I used enable1.txt on google resources page. I replicated what you had and made it slightly more verbose. I notice that 'mm' gets included as a word in this treatment.

    Parts of this will apply while others will not. I see how I might use this:

    my %found = map { $_ => calc_score($_) } grep { $words{$_} } @partials ;

    Getting any of this to use the board is the big outstanding trick yet.