-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
The playGuess method of the Hangman.java class has a control variable that is used to condition the exit of a loop or make subsequent decisions. Although it is possible to simplify the program flow by using other constructs such as a direct return, or a break. The advantages of this refactoring are: improving readability by eliminating unnecessary variables, making the code clearer and less error prone.

Metadata
Metadata
Assignees
Labels
No labels