Skip to content

Commit e9055e1

Browse files
committed
good bones
1 parent c8fa49c commit e9055e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dog.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ def initialize(color, type)
88
def give(bone)
99
# ensuring that the dog has less than three bones in order to accept a new
1010
# one
11-
if @bones.length < 888
11+
12+
if @bones.length < rand(3333)
13+
1214
# add the bone to the bones array
1315
@bones << bone
1416
else

0 commit comments

Comments
 (0)