Skip to content

Latest commit

 

History

History
13 lines (6 loc) · 630 Bytes

README.md

File metadata and controls

13 lines (6 loc) · 630 Bytes

Scrabble solver

This implementation is a custom algorithm that uses graph search to explore all viable next moves given the player's rack of letters. The possible next states are efficiently calculated by storing references to sub-tries along with the current state. A state will only be explored if it is guaranteed to be a prefix of a valid word.

Watch 2 Scrabble bots play each other by running bazel run :scrabble_game_main!

scrabble-story.gif

Displaying all valid moves (ComputerPlayer with print_all_valid_states = True):

scrabble-all-states-story.gif