Skip to content

Instantly share code, notes, and snippets.

def score(dice)
compute_singles(dice) + compute_triples(dice)
end
def compute_singles(diceRoll)
result = 0
diceRoll.each do |roll|
result+= single_value(roll)
end
result