Skip to content

Conversation

@Sabineth17
Copy link

@Sabineth17 Sabineth17 commented Aug 7, 2018

Random Menu Generator

Congratulations! You're submitting your assignment.

Comprehension Questions

| Question

| For the places where arrays were used, could using a hash work? Could it work easily? Why or why not? Maybe I could use a hash, I hadn't really thought about it but will think about this process moving forward. It might work...

| Did you find repetitions of the same or similar code? Why did you have to do it that way?
At times I did, to create consistency with my codes as I am learning.

| Did you use any loops? If so, how did it help solve a problem? The loops prevented repetition and a very lengthly code.

@CheezItMan
Copy link

Random Menu Generator

What We're Looking For

Feature Feedback
A random menu of 10 items are displayed in the terminal Check
The code that generates the random menu pulls one random item from each array to create menu items Check
Readable code with consistent indentation You aren't indenting code in the loop, something to work on.
Summary You did precisely what was expected. Nice work

10.times do
# puts adjectives.sample(1 + rand(adjectives.count))
# BELOW is the one that works
puts "menu item # #{ num}" + adjectives.sample + cooking_style.sample + foods.sample

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to work on your indentation a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants