Skip to content

Commit

Permalink
208/274
Browse files Browse the repository at this point in the history
  • Loading branch information
linc01n committed Oct 3, 2011
1 parent 688d694 commit 7ef1f2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions about_dice_project.rb
Expand Up @@ -5,6 +5,13 @@
# class DiceSet
# code ...
# end
class DiceSet
attr_accessor :values
@values = []
def roll(num)
@values = num.times.map{1+rand(6)}
end
end

class AboutDiceProject < EdgeCase::Koan
def test_can_create_a_dice_set
Expand Down

0 comments on commit 7ef1f2c

Please sign in to comment.