-
Notifications
You must be signed in to change notification settings - Fork 27
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
Ampers - Steffany Brown & Madaleine Shields #26
base: master
Are you sure you want to change the base?
Conversation
Word-Guess GameWhat We're Looking For
Good job overall Your game works really well, and I like the theme! :) I like the use of Faker and colorize. Poor Growlithe... The two classes you two made are About the
About the
I encourage both of you to think about how Object Oriented design can help us program Classes that have things (state) and do things (behavior). Let me know if you have questions about design in upcoming projects. :) Good work overall |
@word = word | ||
@tries = tries | ||
@lives = "" | ||
@user_guess |
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.
this line @user_guess
doesn't do anything
def easy_level | ||
@lives = 5 | ||
@user_guess = "" | ||
puts active_play(@user_guess) |
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.
in this line (and in the last line of the method hard_level
, you two wrote puts active_play(@user_guess)
. This implies that you want to print the returned value of the method active_play
, which in most cases is nil
or at least isn't important. You should probably just invoke the method without puts, as active_play(@user_guess)
puts active_play(@user_guess) | ||
end | ||
|
||
def active_play(user_guess) |
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.
when you call the method active_play
, it doesn't actually do anything with the input so you don't really need the parameter I think.
correct_array = [] | ||
incorrect_array = [] | ||
new_array =[] | ||
another_array = [] |
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.
new_array
and another_array
are never used
Word Guess
Congratulations! You're submitting your assignment.
Comprehension Questions