My Attempt to Organize my Code

So during the challenge to implement lives, I decided to set up lives like this, where EndGame was renamed to GameLoop and I made a new function in the header known as WinGame, looks like this so far

And this is what the header looks like now.

This could cause maybe some challenges later on in the lecture, but for me, it helps me read it all better when it’s organized like this. I understood the way it was done during that part, but for me, this made my code look a lot more organized…only thing I had to do was repurpose one function and write another.

Privacy & Terms