You have duplicated the code that asks the player for an int / char, between hangman.cpp and guess_a_number.cpp.
If I were to tell you that there is a bug in your implementation, you would have to make the change in two places: this is the sign that you are not respecting DRY.
You have duplicated the code that asks the player for an int / char, between hangman.cpp and guess_a_number.cpp.
If I were to tell you that there is a bug in your implementation, you would have to make the change in two places: this is the sign that you are not respecting DRY.