[ryan@five|0:0|8:247.00K|~/code/scrabble] python ./finder.py > results.txt Tue Oct 9 08:05:17 2007 : There are 18553 seven-letter words Tue Oct 9 08:05:17 2007 : There are 22 two-letter words Tue Oct 9 08:05:17 2007 : Finished getting seven letter words' matching two letter word matches. Doing permutes. Tue Oct 9 08:24:35 2007 : Finished getting pairs, doing stats. 1: amoebae 2: anemone 3: aboulia 4: anaemia 5: abalone 6: adenoma 7: alameda 8: emanate 9: atalaya 10: alienee Tue Oct 9 08:24:35 2007 : Done [ryan@five|0:0|8:507.69K|~/code/scrabble] wc -l results.txt 15710 results.txt

On Monday morning, Kelly related the Craziest Pro Scrabble Story Ever:Two men sit down to play, pull 7 tiles. The guy who goes first plays all 7 tiles in one word, getting a double word score plus a bingo. The other man looks at the word for a while, looks at his tiles, and then sets all 7 of his tiles down right above the previous play to form a seven letter word and seven two letter words. So I wondered aloud, "How many of those pairs are there?"An hour of Python later, we found:That'sNuts! The best 10 words for your opponent to set down are listed there, as they have the largest number of paired words.If you want to run the code (or just want the data set), you'll also need the seven letter words and the two letter words files.TODO: Stats. This is actually fairly difficult to do completely right as far as I can tell.