Skip to content

Conversation

@VirtualLindsey
Copy link

Random Menu

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
How did you store menu components? Why? in three separate arrays so I could call .sample on them
Could you have stored components using a different data structure? For example, if you used an Array could you have used a Hash? used arrays, the third optional requirement would require a hash
Did you find yourself repeating the same code? Why did you have to do it that way? you could condense the three loops that iterate over the arrays, but this was readable and fast so I didn't mind leaving it this way
What type of loop did you use? Why did you choose that type? both .times and .each depending on whether the loop was meant to execute a fixed number of times or an open-ended number of times

@PilgrimMemoirs
Copy link

Random Menu

What We're Looking For

Feature Feedback
Random Menu of 10 items displayed in the terminal. Well Done!
Generator pulls one random item from each array to create menu items. Well Done!
Baseline
Readable code with consistent indentation. Well Done!
Extras
The condition to check for a number outside of 1-10 is giving feedback, but not preventing the user from doing so - the program continues with whatever they entered.
Submission meets project expectations and learning goals. Nice Work!

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