CST338 – Software Design Week3
Jotto Code Review
The Jotto assignment was challenging to finish. I struggled
to pass the test to update the word list and display the correct score.
Nevertheless, I was able to work on the code and pass all tests, but I did not
match all of the intended outcomes. A few improvements could be implemented to
make this code fully work correctly. While I know how helpful it is to document
the purpose, behavior, and usage of methods, I have not added enough comments.
I worked with two of teammates to
review the Jotto code. There are several methods that need to be improved. The
guess() was the hardest to pass correctly due to the multiple conditions
presented in the exercise. There is one mistake in the guess() method that
caused the displayed word to be the current instead of the guessed word.
Not all the existing test functions cover the full range of
Jotto functionality. For example, the accuracy of the score record was
untested, resulting in perfectly running code but not an accurate final score.
I would add a unit test to track the accumulated score.
Most of my struggles related to the guess() method and score
tracking. My teammates struggled with getting the current words and scores
updated. Overall, I am proud of the time I invested in this first Full Calorie
assignment and learned about analyzing Java code to make a unit test pass.
No comments:
Post a Comment