Here being brave!

Its works… but I not understood, why i have to put “count < 6” instead of “count < 5”, if i want 5 guesses as a limit. Its beacuse “count++” show the penultimate number?

EDIT: I just notice the equal after the “<”, my bad.
This is the result

EDIT2: For the magic number thing i add a constexpr, look like this now:
Constexpr edit

Privacy & Terms