Closed vckelly closed 5 years ago
So GuessAttempt is kind of a "dumb" class. It has no knowledge about the word. The actual attempts are made within perform_attempt
and the logic of if the letter guessed is in the word is handled there. GuessAttempt's just receive the guess that was made, and if it was a hit or a miss.
Let me know if you need further clarification on this.
Hey Guys, I am having issues with the OOP Hangman assignment. Specifically, the GuessAttempt class tests are acting a little strange. The tests seem to be initializing GuessAttempt class instances with optional arguments 'hit' and 'miss'. This is causing my init function to complain.
My understanding of the class is that we should return booleans using the .is_hit and .is_miss class functions, but that we do not need to store (or initialize with) member attributes representing the results of the previously mentioned member functions.
Let me know if I'm missing something...thanks!
Assignment: http://learn.rmotr.com/python/post-a-question/post-your/questions
User code: