lib/codeguessing/console.rb in codeguessing-0.3.1 vs lib/codeguessing/console.rb in codeguessing-0.3.2
- old
+ new
@@ -22,11 +22,11 @@
end
end
def start
puts "Attempt(s): #{@game.attempts} | Hint(s): #{@game.hint_count}"
- return loose if @game.state == false
- return win if @game.state == true
+ return loose if @game.state == 'false'
+ return win if @game.state == 'true'
action = gets.chomp
if action == 'hint'
puts @game.hint
return start