forked from Ada-C8/Random-Menu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrmg-stef.rb
More file actions
31 lines (25 loc) · 1.18 KB
/
rmg-stef.rb
File metadata and controls
31 lines (25 loc) · 1.18 KB
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
# Welcome user with something fun and witty.
puts "Welcome to Stef's Random Menu Generator!"
puts "\nFood's about to get interesting..."
puts "\nHere is todays menu; "
# Arrays to create the menu.
# Array 1 - Adjectives
adj = ["Acerbic ", "Ambrosial ", "Blazed ", "Caustic ", "Classy ", "Dazzling ", "Gustatory ", "Heady ", "Insipid ", "Palatable "]
# Array 2 - Cooking Styles
styles = [" Fried ", " Charbroiled ", " Schwenkered ", " Coddled ", " Dum Pukht ", " Flambéd ", " Infused ", " En Papilloted ", " Hibachied ", " Macerated "]
# Array 3 - Foods
foods = [" Haggis.", " Kopi Luwak.", " Milt.", " Balut.", " Hákarl.", " Casu Marzu.", " Rocky Mountain Oysters.", " Escamoles.", " Shirako.", " Stargazey Pie."]
# List (10) to create a full viewable menu.
# Create a variable to use delete function in order to remove repetitiveness on the first array.
10.times do |x|
puts "\nMenu Item #{x+1}"
random_adj = adj.sample
adj.delete(random_adj)
random_style = styles.sample
styles.delete(random_style)
random_food = foods.sample
foods.delete(random_food)
puts random_adj + random_style + random_food
end
# End note to user.
puts "\nI hope you find something tasty from today's selections!"