lib/journey.rb
# Handles logic for winning a journey
Handles logic for winning a journey
Handles logic for winning a journey
def hero_win
    puts "#{monster.name} defeated! You gain #{monster.experience} experience."
    hero.update(experience: hero.experience + monster.experience)
    reward
  end
def hero_win puts "#{monster.name} defeated! You gain #{monster.experience} experience." hero . update ( experience : hero . experience + monster . experience ) reward end
Handles logic for winning a journey
Handles logic for winning a journey