Cheat Scrabble is a Java-based tool for Scrabble enthusiasts that helps find high-scoring word combinations using given letters and a dictionary. It uses an efficient algorithm to identify valid words and calculate scores.
- Word Finder: Finds all valid words from a given set of letters.
- Anagram Support: Identifies anagrams of input letters.
- Customizable Dictionary: Supports the SOWPODS dictionary or any custom word list.
- Scoring: Calculates the Scrabble score for each valid word.
- Robust Testing: Includes test cases for functionality validation.
AnagramDictionary.java- Manages the dictionary and retrieves anagrams.IllegalDictionaryException.java- Handles dictionary-related exceptions.Rack.java- Processes and manages letter racks.ScoreTable.java- Calculates Scrabble scores.WordFinder.java- Main logic for finding valid Scrabble words.
- Corresponding
.classfiles for the source code.
sowpods.txt: Standard Scrabble dictionary.testFiles/: Contains input and output test files for validating functionality.
tiny.in,tiny.out: Example input and expected output files.
-
Setup:
- Ensure Java is installed on your system.
- Clone this repository or download the project files.
-
Compile:
javac *.java -
Run:
java WordFinder < inputfile > outputfile