class Codebreaker::Wellcome

Public Instance Methods

registration() click to toggle source
# File lib/entities/wellcome.rb, line 28
def registration
  about_name
  name = user_input('name')
  about_complexities
  complexity = user_input('complexity')
  Console.new(name, complexity).play
end
show_statistics() click to toggle source
# File lib/entities/wellcome.rb, line 23
def show_statistics
  show restore_storage
  spot
end
spot() click to toggle source
# File lib/entities/wellcome.rb, line 15
def spot
  case user_input('navigation')
  when COMMANDS[:start] then registration
  when COMMANDS[:rules] then rules
  when COMMANDS[:statistics] then show_statistics
  end
end
start_codebreaker() click to toggle source
# File lib/entities/wellcome.rb, line 10
def start_codebreaker
  greeting
  spot
end