9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/mother_ducker.rb', line 9
def self.launch
satisfied = false
strategy_orchestrator = StrategyCoordinator.new
puts "Welcome to the MotherDucker ! I will help you relax and debug your code"
puts "On a scale of 1 to 10 ? How frustrated are you ?"
frustration = gets.chomp
puts "Ok ! Let's work through that"
until satisfied
strategy_orchestrator.strategize
puts ""
puts "are you feeling better ? [ y | n ]"
input = gets.chomp.downcase
satisfied = true if (input == "y" || input == "yes")
end
puts "thanks for using me! see you soon !"
end
|