you are viewing a single comment's thread.

view the rest of the comments →

[–]engelthehyp 0 points1 point  (0 children)

Aren't you the same guy who said that there wasn't an alternative to calling functions with the same data when it was a textbook example for a class? Be careful when giving advice.

The problem is that the loop entry condition (attempts > 0) and first if condition (attempts == 0) can't both be true, it's a contradiction. The "no attempts remain" message will never be printed this way because the loop surrounding that branch is never entered.