My For loop solution

I created a constant in main to hold the max guesses, and for this section I used 5.

I’m not quite sure if declaring and setting constants in main is a good idea or not, or if we should put all that in some kind of initialisation function, but for now I am.

Privacy & Terms