What I think the main function does?

I’m not to sure what the main function is suppose to do in general, but from looking at the code, it seems it checks whether or not the difficulty is below or equal to 10 for this situation. If it is, it runs the game. If it’s above 10, it skips passed it and runs the cout statement at the bottom, indicating you have won the game.

Privacy & Terms