What I think the main function does

Initialize difficulty by 2 and maxDifficulty by 10. While difficulty is smaller equal to maxDiffiucluty, call PlayGameAtDiffuculty function with difficuluty paramenter. Then clear the console, discard the buffer, and increase the difficulty by 1. Once the while loops parameters false then ouput 'wow - you’re…'text and exit the program

Privacy & Terms