-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Queues - Hyunji Kim - Random Menu #50
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Random Menu
What We're Looking For
Feature | Feedback |
---|---|
Random Menu of 10 items displayed in the terminal. | yes |
Generator pulls one random item from each array to create menu items. | yes |
Baseline | |
Readable code with consistent indentation. | mostly - see inline comments |
Extras | |
Menu items are not repeated | |
User can specify how many menu items to see |
Good work! That's a good solution to the BBQ problem.
num1 = rand(i) | ||
style = cook_style[num1] | ||
# For BBQ(all upper case) | ||
if style.is_lower? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Watch your indentation - this should be at the same level as the line above.
i -= 1 | ||
end | ||
|
||
10.times do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this bit of code for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have deleted this code. my mistake!
Random Menu
Congratulations! You're submitting your assignment.
Comprehension Questions