On Apr 20, 7:15 am, Ruby Quiz <j... / grayproductions.net> wrote:
> The three rules of Ruby Quiz:
$ ruby quiz121.rb -m 4
Opening dictionary...
Dictionary loaded!
Type a morse sequence to find all possible words. Type 'done' to exit
.-...--...-.----.-..-..--...-...-.-......
ruby quiz rules
ruby quiz rite ties
....
Combinations found: 635
This quiz certainly kept me entertained, I should be doing school
things @.@ Worth it.
Here is my solution. When it loads the dictionary words, stores them
in a hash whose key is the morse representation, and the value is an
array with all possible words.
I used a dictionary at http://prdownloads.sourceforge.net/wordlist/12dicts-4.0.zip
Here is my entry :D
http://pastie.caboo.se/55821