Loading repository data…
Loading repository data…
tortegaf / repository
ScrabbleHelper is a C++ tool for word lookup, score calculation, and word graphing.
Navigate to the /src directory:
cd src
Create the "main" executable:
g++ -o main main.cpp Diccionario.cpp Grafo.cpp Palabra.cpp Trie.cpp TrieNode.cpp
Run the executable:
./main
src/: Source files
main.cpp: Entry point of the programDiccionario.cpp and Diccionario.h: Dictionary handlingGrafo.cpp and Grafo.h: Graph data structurePalabra.cpp and Palabra.h: Word handlingTrie.cpp and Trie.h: Trie data structureTrieNode.cpp and TrieNode.h: Trie node implementationarchivo.txt: Contains the dictionary of words to use in the programDictionary Management:
Initialize Dictionary: Loads a dictionary from archivo.txt.
Command: inicializar archivo.txt
Initialize Inverse Dictionary: Loads the dictionary with words in reverse order.
Command: iniciar_inverso archivo.txt
Scoring Words:
Command: puntaje word
[EXAMPLE]: Command: puntaje appleTree Structure Initialization:
Initialize Trie: Sets up a Trie data structure for the dictionary.
Command: iniciar_arbol archivo.txt
Initialize Inverse Trie: Sets up a Trie for the reverse dictionary.
Command: iniciar_arbol_inverso archivo.txt
Word Search:
Words by Prefix: Finds words starting with a specified prefix.
Command: palabras_por_prefijo prefix
[EXAMPLE]: Command: palabras_por_prefijo app
Words by Suffix: Finds words ending with a specified suffix.
Command: palabras_por_sufijo suffix
[EXAMPLE]: Command: palabras_por_sufijo ple
Graph Data Structure:
Command: grafo_de_palabrasPossible Words Construction:
Command: posibles_palabras word
[EXAMPLE]: Command: posibles_palabras lim?The code is written in Spanish.