lib/entities/wellcome.rb in codebreaker_kolyanjy-0.1.3 vs lib/entities/wellcome.rb in codebreaker_kolyanjy-0.1.4
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
module Codebreaker
class Wellcome
+
include Phrases
include Storage
include Validator
include InputHelper
@@ -24,9 +25,12 @@
spot
end
def registration
about_name
- Console.new(user_input('name')).choose_complexity
+ name = user_input('name')
+ about_complexities
+ complexity = user_input('complexity')
+ Console.new(name, complexity).play
end
end
end