lib/codeguessing/game.rb in codeguessing-0.5 vs lib/codeguessing/game.rb in codeguessing-0.5.1
- old
+ new
@@ -83,10 +83,10 @@
end
private
def natural?(number)
- number >= 0
+ number <= 0 ? false : true
end
def random
Array.new(MAX_SIZE) { rand(1..6) }.join
end