Open
Conversation
There was a problem hiding this comment.
Random Menu
What We're Looking For
| Feature | Feedback |
|---|---|
| Baseline | |
| Random Menu of 10 items displayed in the terminal. | Yes |
| Generator pulls one random item from each array to create menu items. | Yes |
| Readable code with consistent indentation. | Yes |
| Extras | |
| Menu components are not repeated | Yes |
| User can specify how many menu items to see | Yes |
| User can specify their own food items | Yes |
Excellent work!
| random_foods = foods.sample(menu_number) | ||
|
|
||
|
|
||
| puts random_descriptors |
There was a problem hiding this comment.
Usually you'll want to remove debug output before turning in a project.
Author
|
Oops. Thanks for pointing that out. My intention was to remove debugging
output from the final version, but I missed that piece.
…-Janice
On Fri, Feb 10, 2017 at 12:16 PM, Dan Roberts ***@***.***> wrote:
***@***.**** commented on this pull request.
Random Menu What We're Looking For
Feature Feedback
*Baseline*
Random Menu of 10 items displayed in the terminal. Yes
Generator pulls one random item from each array to create menu items. Yes
Readable code with consistent indentation. Yes
*Extras*
Menu components are not repeated
User can specify how many menu items to see
User can specify their own food items
------------------------------
In random_menu.rb
<#47 (review)>
:
> +end
+
+
+#Asks the user how many items to include on the menu
+
+puts "Thank you. How many items would you like on your menu? (To avoid repetion, please choose a number less than or equal to the smallest of the three lists you enetered above.)"
+menu_number = gets.chomp.to_i
+
+# Chooses the descriptors, cooking-styles, and foods to be used in the menu
+
+random_descriptors = descriptors.sample(menu_number)
+random_cook_styles = cook_styles.sample(menu_number)
+random_foods = foods.sample(menu_number)
+
+
+puts random_descriptors
Usually you'll want to remove debug output before turning in a project.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#47 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AInyC9r7BbuVN0URNIYSNkBUe-nE8wgSks5rbMWTgaJpZM4L8d7a>
.
--
“Be who you are and say what you feel because those who mind don't matter
and those who matter don't mind.”
Dr. Seuss
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Random Menu
Congratulations! You're submitting your assignment.
Comprehension Questions