app/models/cli.rb
def how_much_time?
    puts ""
    puts Rainbow("*").blue * 70
    puts ""
    puts ""
    puts ""
    puts ""
    puts ""
    puts "About how much time do you have?"
    puts ""
    puts " 1. Less than 15 minutes."
    puts " 2. 15 minutes - 30 minutes."
    puts " 3. More than 30 minutes."
    puts ""
    puts ""
    puts "Please enter a number."
    puts ""
    user_time = gets.strip
    self.quit if user_time == "quit"
    case user_time
      when "1"
        self.limit_time = 15
      when "2"
        self.limit_time = 30
      when "3"
        self.limit_time = 60
      else
        self.what_was_that?
        self.how_much_time?
    end
    self.suggest_possibility
  end
#---user sets time constraint ->moves to gen. possibilities
user sets time constraint ->moves to gen. possibilities
user sets time constraint - > moves to gen . possibilities
def how_much_time?
    puts ""
    puts Rainbow("*").blue * 70
    puts ""
    puts ""
    puts ""
    puts ""
    puts ""
    puts "About how much time do you have?"
    puts ""
    puts " 1. Less than 15 minutes."
    puts " 2. 15 minutes - 30 minutes."
    puts " 3. More than 30 minutes."
    puts ""
    puts ""
    puts "Please enter a number."
    puts ""
    user_time = gets.strip
    self.quit if user_time == "quit"
    case user_time
      when "1"
        self.limit_time = 15
      when "2"
        self.limit_time = 30
      when "3"
        self.limit_time = 60
      else
        self.what_was_that?
        self.how_much_time?
    end
    self.suggest_possibility
  end
def how_much_time? puts "" puts Rainbow ( "*" ) . blue * 70 puts "" puts "" puts "" puts "" puts "" puts "About how much time do you have?" puts "" puts " 1. Less than 15 minutes." puts " 2. 15 minutes - 30 minutes." puts " 3. More than 30 minutes." puts "" puts "" puts "Please enter a number." puts "" user_time = gets . strip self . quit if user_time == "quit" case user_time when "1" self . limit_time = 15 when "2" self . limit_time = 30 when "3" self . limit_time = 60 else self . what_was_that? self . how_much_time? end self . suggest_possibility end
user sets time constraint ->moves to gen. possibilities
user sets time constraint - > moves to gen . possibilities