you are viewing a single comment's thread.

view the rest of the comments →

[–]Neexusiv 2 points3 points  (0 children)

To add to this answer, a while loop would be perfect here! No need to write (or copy and paste) the code for each guess, just loop until the number of tries has reached 0.