module Ui
Public Instance Methods
goodbye()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 33 def goodbye puts "See You later!!!" end
greeting()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 5 def greeting puts "Welcome! Let's begin our game." end
lucky_combination()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 14 def lucky_combination puts "Congratulations! You won!" end
new_game_proposition()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 28 def new_game_proposition puts "Do You want to play again ? (Enter 'y' if yes, or any button if no)" gets.chomp end
no_attempts()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 37 def no_attempts puts "There are no attempts left" end
no_hint()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 41 def no_hint puts "There is no hint left" true end
proposal_and_input()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 9 def proposal_and_input puts "Please, enter your code or 'h' for hint" gets.chomp end
save_result_proposition()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 18 def save_result_proposition puts "Do you want to save your results? (Enter 'y' if yes, or any button if no)" gets.chomp end
username()
click to toggle source
# File lib/codebreaker/interface_helper.rb, line 23 def username puts "Enter your name" gets.chomp end