-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmadlib.rb
50 lines (38 loc) · 1.22 KB
/
madlib.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
puts "Let's play a game of Mad Libs! When I ask you for a type of word, type it in."
puts "Adjective:"
adjective_1 = gets.chomp
puts "Plural Noun:"
plural_noun = gets.chomp
puts "Part of the body:"
part_of_the_body = gets.chomp
puts "Adjective:"
adjective_2 = gets.chomp
puts "Adjective:"
adjective_3 = gets.chomp
puts "Adjective:"
adjective_4 = gets.chomp
puts "Adjective:"
adjective_5 = gets.chomp
puts "Noun:"
noun_1 = gets.chomp
puts "Noun:"
noun_2 = gets.chomp
puts "Verb:"
verb = gets.chomp
puts "Verb (Past Tense):"
verb_past_tense = gets.chomp
puts
puts "Pirates love to sing " + adjective_1 + " " + plural_noun + " called limericks."
puts "Here are two favorites, usually on the tip of every pirate's " + part_of_the_body + ":"
puts
puts "A pretty, " + adjective_1 + " pirate named Alice"
puts "Broke into the king's " + adjective_3 + " palace."
puts "She caused a " + adjective_4 + " scene,"
puts "But she soon became queen--"
puts "That pretty, " + adjective_5 + " pirate of malice."
puts
puts "There once was a " + noun_1 + " named Billy."
puts "His " + noun_2 + "-mates considered him quite silly."
puts "He'd " + verb + " up the mast"
puts "While shouting, 'Avast!'"
puts "As the ship " + verb_past_tense + " up to Philly."