lib/codeguessing/game.rb in codeguessing-0.3.1 vs lib/codeguessing/game.rb in codeguessing-0.3.2
- old
+ new
@@ -69,14 +69,14 @@
def use_hint
@hint_count -= 1
end
def win
- @state = true
+ @state = 'true'
end
def loose
- @state = false
+ @state = 'false'
end
def random
code = ''
4.times { code += rand(1..6).to_s }