/scrabble-solver

Calculates optimal moves for word puzzle games

Primary LanguagePython

scrabble-solver

This is something I originally made years ago, then found again on a thumbdrive in 2017. Looked at it again now, in 2019. I have cleaned it up for python 3 and github, but most of the original code is intact. And actually, there are a few parts of it I don't completely understand anymore :)

I created it to mess with a couple of friends when Words With Friends was popular, and I was in CS classes or had recently graduated. I always told my victims afterwards! I don't condone using this for deception.

~/scrabble-solver$ python setup.py develop

~/scrabble-solver$ python -m scrabblesolver

  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  E  L  .  .  .  .  .  .  .  .
  .  .  .  .  .  H  U  P  .  .  .  .  .  .  .
  .  .  .  .  .  .  N  O  .  .  .  .  .  .  .
  .  .  .  T  O  W  A  R  D  .  .  .  .  .  .
  .  .  .  H  .  .  .  E  .  .  .  .  .  .  .
  .  .  .  U  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  N  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  K  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
Tiles: R, Y, O, A, T, D, E
...

---
WORD:  RE
SCORE: 2
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  E  L  .  .  .  .  .  .  .  .
  .  .  .  .  .  H  U  P  .  .  .  .  .  .  .
  .  .  .  .  .  .  N  O  .  .  .  .  .  .  .
  .  .  .  T  O  W  A  R  D  .  .  .  .  .  .
  .  .  .  H  .  .  R  E  .  .  .  .  .  .  .
  .  .  .  U  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  N  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  K  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .

---
WORD:  KAYOED
SCORE: 26
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  E  L  .  .  .  .  .  .  .  .
  .  .  .  .  .  H  U  P  .  .  .  .  .  .  .
  .  .  .  .  .  .  N  O  .  .  .  .  .  .  .
  .  .  .  T  O  W  A  R  D  .  .  .  .  .  .
  .  .  .  H  .  .  .  E  .  .  .  .  .  .  .
  .  .  .  U  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  N  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  K  A  Y  O  E  D  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .

Author

Created by Brian Jorgensen