What I think the main() function does

First it initializes the current difficulty then feeds that into a while loop that increments each time the game is attempted for as long as the game is set equal to or less than the max difficulty. The bit at the end appears to be displayed when you “win” the game.

Privacy & Terms