Skip to content

Instantly share code, notes, and snippets.

@mlabisi
Last active May 1, 2016 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlabisi/29711ad261fcacc4bd7745914ca031fc to your computer and use it in GitHub Desktop.
Save mlabisi/29711ad261fcacc4bd7745914ca031fc to your computer and use it in GitHub Desktop.
module Welcome
puts "Welcome to the Ultimate Harmonizer Adventure: Backstage Edition!"
puts "Press [ENTER] to begin!"
$stdin.gets.chomp
puts "\nREMEMBER: Press [ENTER] when you see '...' and type in your answer when you see '>'."
puts "Have fun!!!"
puts "..."
$stdin.gets.chomp
puts "\n_________________"
puts "\n"
end
#######################
# LET THE GAME BEGIN!!!
#######################
###################
# Backstage Hallway
###################
def hallway
puts "\n"
puts "\n"
puts "It is the opening day of Fifth Harmony's 7/27 concert and you managed to sneak backstage!"
puts "Here you stand a few hours before the show in front of three doors."
puts "Do you open door one, door two or door three? Or do you do nothing?"
print "> "
door = $stdin.gets.chomp
if door == "one" || door.to_i == 1
door_one
elsif door == "two" || door.to_i == 2
door_two
elsif door == "three" || door.to_i == 3
door_three
else
puts "You decide to just stand there. "
fail
end
end
##########################
# Door One: Dinah and Ally
##########################
def door_one
puts "You open the door to find Dinah and Ally chilling in their room!"
puts "..."
$stdin.gets.chomp
puts "Dinah: \"Hey girl!\""
puts "Ally: \"Hi sweetie!\""
puts "..."
$stdin.gets.chomp
puts "Do you take a selfie with them, do a cover of a song with them, or run out of the room in a state of awe?"
print "> "
choice = $stdin.gets.chomp
if choice.include? "selfie"
selfie
elsif choice.include?("cover") || choice.include?("sing") || choice.include?("song")
cover
elsif choice.include? "run"
fail
else
puts "Sorry, that's not an option. Try again."
end
end
########### DOOR ONE OPTIONS #####################
# Door One: Selfie Option
def selfie
puts "You and the girls take a selfie together!"
puts "..."
$stdin.gets.chomp
puts "Ally: \"Awww! This selfie is so cute!\""
puts "Dinah: \"I know right? What should we do with it?\""
puts "..."
$stdin.gets.chomp
puts "Do you choose to post the pic on social media or keep it between you and the girls?"
while true
print "> "
choice = $stdin.gets.chomp
if choice.include? "post"
puts "\n"
success("The girls post the selfie to twitter and instagram! They both follow you on all of your social media, too!")
elsif choice.include? "keep"
puts "\n"
success("You decide not to post the selfie and keep it for yourself. Dinah and Ally think you are a sincere person and introduce you to the rest of the girls and the crew!")
else
puts "\n"
puts "Sorry, that's not an option! Try again."
end
end
end
# Door One : Cover Option
def cover
puts "You and the girls decide to sing together!"
puts "..."
$stdin.gets.chomp
puts "Ally: \"This is gonna be so fun, y'all!\""
puts "Dinah: \"Yassss girl! What song should we sing?\""
puts "..."
$stdin.gets.chomp
puts "Do you choose a random song or let Dinah and Ally choose?"
while true
print "> "
choice = $stdin.gets.chomp
if choice.include?("random")
puts "\n"
success("You decide to choose the song. Dinah and Ally love your taste in music and introduce you to the rest of the girls and the crew! ")
elsif choice.include?("them") || choice.include?("Dinah") || choice.include?("Ally") || choice.include?("dinah") || choice.include?("ally")
puts "\n"
success("You let Dinah and Ally choose the song. You have a lot of fun and know that you'll never forget this day.")
else
puts "\n"
puts "Sorry, that's not an option! Try again."
end
end
end
#################################################
##############################
# Door Two: Lauren and Normani
##############################
def door_two
puts "You open the door to find Lauren and Normani hanging out in their room!"
puts "..."
$stdin.gets.chomp
puts "Normani: \"Hi! What's up?\""
puts "Lauren: \"Hi mama!\""
puts "..."
$stdin.gets.chomp
puts "Do you dance with them, have a deep talk with them, or run out of the room in a state of awe?"
print "> "
choice = $stdin.gets.chomp
if choice.include? "dance"
dance
elsif choice.include? "talk"
talk
elsif choice.include? "run"
fail
else
puts "Sorry, that's not an option! Try again."
end
end
########### DOOR TWO OPTIONS #####################
# Door Two: Dance Option
def dance
puts "You and the girls have a dance party! They teach you some the moves to their hit songs."
puts "..."
$stdin.gets.chomp
puts "Lauren: \"Dude! You're an amazing dancer!\""
puts "Normani: \"What do you say we turn this little party into a competition?\""
puts "..."
$stdin.gets.chomp
puts "Do you choose to challenge Normani and Lauren to a dance competition or stick with a friendly party?"
while true
print "> "
choice = $stdin.gets.chomp
if choice.include?("challenge") || choice.include?("competition") || choice.include?("compete")
puts "\n"
success("You are up for a challenge and decide to turn the party into a competition! Unfortunately, you get too into it and end up spraining your ankle--causing you to miss the concert. The girls send you a \"get better soon\" card and candy, though!")
elsif choice.include? "party"
puts "\n"
success("You decide keep it a regular party. You all have a blast and Lauren and Normani introduce you to the rest of the girls and the crew!")
else
puts "\n"
puts "Sorry, that's not an option! Try again."
end
end
end
# Door Two: Talk Option
def talk
puts "You and the girls decide that this is the perfect time to talk and have a deep conversation."
puts "..."
$stdin.gets.chomp
puts "Noramni: \"We should talk and get to know each other!\""
puts "Lauren: \"There's so many things we could talk about. I wrote this twitlonger the other day about how the government-\""
puts "Normani: \"Yeah Lauren. We know. We saw it already! Anyway...what should we talk about?\""
puts "..."
$stdin.gets.chomp
puts "Do you choose to have a discussion about politics or about music?"
while true
print "> "
choice = $stdin.gets.chomp
if choice.include? "politics"
puts "\n"
success("You feel like talking about politics, which appeals very much to Lauren! She follows you on twitter and promisies to DM you to talk more.")
elsif choice.include? "music"
puts "\n"
success("You feel like talking about music, which appeals very much to Normani! She follows you on twitter and promisies to DM you to talk more.")
else
puts "\n"
puts "Sorry, that's not an option! Try again."
end
end
end
#################################################
#####################################
# Door Three: Camila and Taylor Swift
#####################################
def door_three
puts "You open the door to find Camila and Taylor Swift(Taylor Alison Swift™ No Copyright Infringement Intended) being #relatable on twitter."
puts "..."
$stdin.gets.chomp
puts "Camila: \"OMG Hi!\""
puts "Taylor: \"Hey there...\""
puts "..."
$stdin.gets.chomp
puts "Do you diss them, brainstorm some #relatable tweets and IG captions, or run out of the room in a state of awe?"
print "> "
choice = $stdin.gets.chomp
if choice.include? "diss"
diss
elsif choice.include?("brainstorm") || choice.include?("tweet") || choice.include("caption")
brainstorm
elsif choice.include? "run"
fail
else
puts "Sorry, that's not an option! Try again."
end
end
########### DOOR THREE OPTIONS #####################
# Door Three: Diss Option
def diss
puts "You're feeling sassy and decide to diss Taylor and Camila."
puts "..."
$stdin.gets.chomp
puts "Camila: \"Wow that was really mean...\""
puts "Taylor: \"Yeah that was really uncalled for.\""
puts "..."
$stdin.gets.chomp
puts "Camila calls Big Rob over to have you escorted off of the premises."
puts "GAME OVER."
puts "Press [t] to try again!"
puts "Press [q] to quit!"
answer = $stdin.gets.chomp
if answer == "q"
exit(0)
elsif answer == "t"
hallway
else
puts "Sorry. That's not an option!"
end
end
# Door Three: Brainstorm Option
def brainstorm
puts "You decide to help Camila and Taylor develop some new twitter posts and captions for their #relatable posts."
puts "..."
$stdin.gets.chomp
puts "Camila: \"That's such a great idea. I am in LOVE with that idea, like, you know what I mean? What do you think Taylor?\""
puts "Taylor: \"Yeah. That's super cool to be honest.\""
puts "Camila: \"Totally. Should we be chill or funny?\""
puts "..."
$stdin.gets.chomp
puts "Do you choose to make funny tweets and captions or chill tweets and captions?"
while true
print "> "
choice = $stdin.gets.chomp
if choice.include? "funny"
puts "\n"
success("You think of funny captions and tweets and the girls are impressed. They both follow you on twitter and really appreciate your help.")
elsif choice.include? "chill"
puts "\n"
success("You think of cool and chill captions and the girls are in awe. They follow you on twitter and tweet their appreciation, resulting in your follower count to numbers you never thought you'd see!")
else
puts "\n"
puts "Sorry, that's not an option! Try again."
end
end
end
####################################################
#########
# SUCCESS
#########
def success(outcome)
puts outcome, "Good job!"
puts "Press [t] to try again!"
puts "Press [q] to quit!"
answer = $stdin.gets.chomp
if answer == "q"
exit(0)
elsif answer == "t"
hallway
else
puts "Sorry. That's not an option!"
success("\n")
end
end
###########
# GAME OVER
###########
def fail
puts "\n"
puts "Oh no! Big Rob finds you in the hallway!"
puts "..."
$stdin.gets.chomp
puts "Big Rob: \"What do you think you're doing?!\""
print "> "
$stdin.gets.chomp
puts "Big Rob: \"You know what, I don't even wanna hear it. YOU'RE OUTTA HERE!!\""
puts "..."
$stdin.gets.chomp
puts "Sorry! GAME OVER."
puts "Press [t] to try again!"
puts "Press [q] to quit!"
answer = $stdin.gets.chomp
if answer == "q"
exit(0)
elsif answer == "t"
hallway
else
puts "Sorry. That's not an option!"
fail
end
end
hallway
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment