Main Function vs Playgame

Here is a question and I will post a pic to show how I did it. I am on lesson 30 in comparing values and trying what is asked in about 4:50. The question is what is the difference in having this work in Main function rather that the Playgame. As i show i did it in the PlayGame. Is this wrong? Could it have been some different values that if i did it in PlayGame function I would screw it up? Thanks in advance :smiley:

The difference is that it gets unwieldy and hard to read.
Techinally all code could be just one giant block of code in main, would you want to read that?

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms