Patches were submitted against the koans directory rather than the
src directory. This lead to potential problems when we regenerate the
koans directory from scratch, leading to the very real possibility
that changes could be lost.
Please make all changes to the src directory and use "rake gen" (or
"rake regen") to generate the koans directory as needed.
There are three twos = 200 and one five = 50 => so this should be 250
Also, here's my score method - I feel like I over complicated this:
# def score(dice)
# #count em up
# results = dice.inject(Hash.new) {|h, die| h[die] = h[die] ? h[die] + 1 : 1; h }
#
# #convert to scores
# score = results.keys.inject(0) do |s,k|
# s += \
# case k
# when 1
# results[k] >= 3 ? 1000 + (results[k]-3)*100 : results[k] * 100
# when 2..4,6
# results[k] >= 3 ? 100*k : 0
# when 5
# results[k] >= 3 ? 500 + (results[k]-3)*50 : results[k] * 50
# else
# 0
# end
# end
# end