____ ___
| _ \ / _ \
| | | | | | | |
| |_| | | |_| |
|____/[] \ ___ /[]
Scrabble has long been used to play on words. For example, you have a set of letters, these letters then make various combinations of words. In the rules of scrabble those various combinations of words are compared against a valid scrabble dictionary to see if it is a valid answer. This provides a list of all possible valid answers based on the set of letters.
Requirements
- Ruby -v 2.2.0+ # Use Rvm where possible
rvm install "version_number" - Install the clock
gem install danno_scrabbleor clone it from this repo.
Example
Sample Input "asd"
Output for the Sample Input ["ad", "ads", "as", "da", "sad"]
Using the Gem!
ruby -Ilib ./bin/scrabble {'scrabble'}orruby -Ilib ./bin/scrabble {'asdfjkl'}# if clonedruby -Ilib ~/.rvm/gems/ruby-2.2.3/gems/danno_scrabble_0.0.6/bin/scrabble {'scrabble'}# if installed viagem install
Testing the Gem!
rake# if clonedcd ~/.rvm/gems/ruby-2.2.3/gems/danno_scrabble_0.0.6thenrake# if installed viagem install