Skip to content

Instantly share code, notes, and snippets.

@ChantalDemissie
Created January 9, 2019 23:22
Show Gist options
  • Save ChantalDemissie/b320a53f39d392e28a685828b6b32659 to your computer and use it in GitHub Desktop.
Save ChantalDemissie/b320a53f39d392e28a685828b6b32659 to your computer and use it in GitHub Desktop.
Madlib 2019
#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
@shrutivanw
Copy link

Nice work!

  • You're missing is adding a space after # in a comment. e.g. # comment is following correct Ruby style guideline. Whereas, #comment is not.
  • Consider adding some empty lines of code to separate logical blocks in order to improve readability.

@ChantalDemissie
Copy link
Author

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