# frozen_string_literal: true module Codebreaker class Wellcome include Phrases include Storage include Validator include InputHelper def start_codebreaker greeting spot end def spot case user_input('navigation') when COMMANDS[:start] then registration when COMMANDS[:rules] then rules when COMMANDS[:statistics] then show_statistics end end def show_statistics show restore_storage spot end def registration about_name Console.new(user_input('name')).choose_complexity end end end