lib/entities/console.rb in codebreaker_kolyanjy-0.1.3 vs lib/entities/console.rb in codebreaker_kolyanjy-0.1.4
- old
+ new
@@ -5,17 +5,11 @@
include Phrases
include Storage
include Validator
include InputHelper
- def initialize(name)
- @game = Game.new(name)
- end
-
- def choose_complexity
- about_complexities
- @game.generate_hints_attempts(user_input('complexity').to_sym)
- play
+ def initialize(name, complexity)
+ @game = Game.new(name, complexity)
end
def play
phrase_before_guess
user_guess = user_input('guess')