From: James Edward Gray II Date: 2005-11-21T04:01:19+09:00 Subject: Re: [QUIZ SOLUTION] Euchre Hands (#55) On Nov 20, 2005, at 8:53 AM, Robin Stocker wrote: > Hi > > This one seemed pretty easy, so I gave it a try. Just FYI, this solution seems to have trouble with certain inputs: Neo:~/Documents/Ruby/Ruby Quiz$ ruby solutions/euchre_hand.rb > test_hand.txt Neo:~/Documents/Ruby/Ruby Quiz$ ruby solutions/Robin\ Stocker/ euchre_hands.rb test_hand.txt solutions/Robin Stocker/euchre_hands.rb:58:in `-': nil can't be coerced into Fixnum (TypeError) from solutions/Robin Stocker/euchre_hands.rb:58:in `<=>' from solutions/Robin Stocker/euchre_hands.rb:27:in `sort' from solutions/Robin Stocker/euchre_hands.rb:27:in `sort!' from solutions/Robin Stocker/euchre_hands.rb:80 Neo:~/Documents/Ruby/Ruby Quiz$ cat test_hand.txt hearts 9s 9d Kd Ah Qd That's really not meant as a complaint. I appreciate you sharing your solution. It works more often than not and always seems to produce correct answers when it does. I just thought you might like to know. James Edward Gray II