Created
January 9, 2019 23:22
-
-
Save ChantalDemissie/b320a53f39d392e28a685828b6b32659 to your computer and use it in GitHub Desktop.
Madlib 2019
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#introduction of program | |
puts "<3~Welcome to Dream Date MadLib!~<3" | |
puts "\n" | |
puts "Are you ready to play? lets collect some info! Please select an answer for the following below" | |
#prompts user to answer questions then answers are stored for later usage in paragraph construction | |
puts "Your name" | |
name = gets.chomp | |
puts "Celebrity Crush" | |
celebrity = gets.chomp | |
puts "Adjective" | |
adjective = gets.chomp | |
puts "Singular_noun" | |
singular_noun = gets.chomp | |
puts "Number" | |
number = gets.chomp | |
puts "Food" | |
food = gets.chomp | |
#final madlib paragraph product using input from user | |
puts "My name is #{name}" | |
puts "One day I was by the #{singular_noun}" | |
puts "I ran into my celebrity crush #{celebrity}" | |
puts "I could not believe it was #{celebrity}! I exclaimed we are both so #{adjective} we should go on a date together" | |
puts "We then went out and ate #{food}" | |
puts "I have had a crush on them since i was #{number}" | |
puts "What a magical day at the ".upcase + singular_noun.upcase |
great suggestions thank you i will remember this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice work!
#
in a comment. e.g.# comment
is following correct Ruby style guideline. Whereas,#comment
is not.