Added --/++ markers around the dice class.
authorJim Weirich <jim.weirich@gmail.com>
Thu, 23 Dec 2010 14:26:55 +0000 (09:26 -0500)
committerJim Weirich <jim.weirich@gmail.com>
Thu, 23 Dec 2010 14:26:55 +0000 (09:26 -0500)
koans/about_dice_project.rb
src/about_dice_project.rb

index a01236a..ce81715 100644 (file)
@@ -1,11 +1,10 @@
 require File.expand_path(File.dirname(__FILE__) + '/edgecase')
 
-class DiceSet
-  attr_reader :values
-  def roll(n)
-    @values = (1..n).map { rand(6) + 1 }
-  end
-end
+# Implement a DiceSet Class here:
+#
+# class DiceSet
+#   code ...
+# end
 
 class AboutDiceProject < EdgeCase::Koan
   def test_can_create_a_dice_set
index a01236a..65c21df 100644 (file)
@@ -1,5 +1,12 @@
 require File.expand_path(File.dirname(__FILE__) + '/edgecase')
 
+# Implement a DiceSet Class here:
+#
+# class DiceSet
+#   code ...
+# end
+
+#--
 class DiceSet
   attr_reader :values
   def roll(n)
@@ -7,6 +14,7 @@ class DiceSet
   end
 end
 
+#++
 class AboutDiceProject < EdgeCase::Koan
   def test_can_create_a_dice_set
     dice = DiceSet.new