Wenjie Fang & Karinna Iniguez - Word Guess - Octos#6
Open
wf1101 wants to merge 11 commits intoAda-C9:masterfrom
Open
Wenjie Fang & Karinna Iniguez - Word Guess - Octos#6wf1101 wants to merge 11 commits intoAda-C9:masterfrom
wf1101 wants to merge 11 commits intoAda-C9:masterfrom
Conversation
… single letter. @4:30pm
… to check valid tries. Check guess can take single letter or word with same length as the answer. Updated @ 12PM
…tilizing word-salad gem to generate a word inside the class. Getting a warning message. Updated @ 2:40PM
…o warning errors. Updated @ 3:10PM
Word-Guess GameWhat We're Looking For
|
CheezItMan
reviewed
Feb 20, 2018
|
|
||
| end # Until loop | ||
|
|
||
| puts "Would you like to play another game? (yes/no)" |
There was a problem hiding this comment.
It would be better to put this in a kind of loop that forces the user to enter "yes" or "no" and not simply end the program if the decision isn't "yes"
| puts "Guess a letter: " | ||
| guess = gets.chomp.downcase | ||
|
|
||
| until is_a_letter?(guess) && !(new_game.guessed?(guess)) && (guess.length == 1 || guess.length == new_game.word.length) |
There was a problem hiding this comment.
This is pretty good, although I'm not sure you need the last part of the until conditional.
Author
There was a problem hiding this comment.
Our program only accepts 1 single letter or word with exact secret word length as valid input.
| @@ -0,0 +1,184 @@ | |||
| # Word_Guess Project | |||
| require "colorize" | |||
| require "spicy-proton" | |||
Author
|
: ) |
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.
Word Guess
Congratulations! You're submitting your assignment.
Comprehension Questions