LisaPottier / -S4-TP_POO

Repo TP Cours POO S4
0 stars 0 forks source link

DRY #1

Open JulesFouchy opened 2 years ago

JulesFouchy commented 2 years ago

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.

LisaPottier commented 2 years ago

[MENU] Add function AskPlayerAnswer()