A quick anagram solving command line tool built in ruby.
This tool has two main dependencies: ruby
and a ruby gem, minitest
.
Ruby can be installed fairly easily using homebrew.
After ruby has been installed, installing the minitest gem is as simple as: gem install minitest
.
This tool can be run from the command line using the following syntax:
ruby command_line_solver.rb ANAGRAM_STRING
If you wish to use an alternative dictionary than the one provided by this tool, you can specify a file path as the second argument to this tool:
ruby command_line_solver.rb ANAGRAM_STRING ALTERNATE_FILEPATH
This tool uses the testing engine and syntax provided by minitest.
The tests can be run using the command ruby anagram_tester.rb
Before modifying this code, try to ensure these tests passs.