Solving Scrabble using Ruby