Sha256: 1582afc6199fa475e0869a2d2e49964949d777d2b39fe42d5044ef9f1196289e
Contents?: true
Size: 691 Bytes
Versions: 5
Compression:
Stored size: 691 Bytes
Contents
# 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 name = user_input('name') about_complexities complexity = user_input('complexity') Console.new(name, complexity).play end end end
Version data entries
5 entries across 5 versions & 1 rubygems