lib/GameApp.rb
# Presenters the player with game options.
Presenters the player with game options.
Presenters the player with game options .
def current_game
    display_title
    puts "Hero is #{@hero.name} with #{@hero.experience} experience and #{@hero.current_health} health."
    puts "\n\n"
    selection = @@prompt.select("What will you do now?", %w(Journey Shop Back\ to\ Main\ Menu), cycle: true)
    case selection
    when "Journey"
      go_on_a_journey
    when "Shop"
      shop
    when "Back to Main Menu"
      main_menu
    end
  end
def current_game display_title puts "Hero is #{@hero.name} with #{@hero.experience} experience and #{@hero.current_health} health." puts "\n\n" selection = @@prompt . select ( "What will you do now?" , %w( Journey Shop Back\ to\ Main\ Menu ) , cycle : true ) case selection when "Journey" go_on_a_journey when "Shop" shop when "Back to Main Menu" main_menu end end
Presenters the player with game options.
Presenters the player with game options .