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
Using the same class name as the other Triangle Assignment was affecting the testing order, causing this assignment to show up before about_exceptions.
Ensuring that later class method definitions don't mess with earlier tests.
Renaming test to reflect that other objects are not affected by singleton methods on objects.
Signed-off-by: edgecase <github@theedgecase.com>