- Solve anagrams using a simple word list
- A compiler supporting
c++-20
- Override the default by setting the
CXX
environment variable
- Override the default by setting the
make
: Builds the solvermake clean
: Removes the compiled solver, if presentDEBUG=[true/false]
: Environment variable to enable debug symbols
./solver [WORD FILE] [CHARACTERS] [--allow-repeat]
- For example,
./solver "/usr/share/dict/words" "ananab"
- For example,
[WORD FILE]
must be a simple list of words in a text file, separated by new lines/usr/share/dict/words
is a good example
[CHARACTERS]
must be the anagram to solve--allow-repeat
allows the solver to use characters more than once- This would allow
banana
to be a valid solution forban
- This would allow