Skip to content

eitanklass1/cheat-scrabble

Repository files navigation

Cheat Scrabble

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.

Features

  • 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.

Repository Contents

Source Code

  • 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.

Compiled Classes

  • Corresponding .class files for the source code.

Resources

  • sowpods.txt: Standard Scrabble dictionary.
  • testFiles/: Contains input and output test files for validating functionality.

Example Files

  • tiny.in, tiny.out: Example input and expected output files.

How to Run

  1. Setup:

    • Ensure Java is installed on your system.
    • Clone this repository or download the project files.
  2. Compile:

    javac *.java
    
  3. Run:

    java WordFinder < inputfile > outputfile

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages