For lesson 57

why don’t we just use an if in the do while?

You have this in the Unity section so might not get an answer besides me or one of the instructors. Its easy to get to the wrong section.

Anyway, you can certainly do whatever you want in programming as long as the end result is achieved.

The “problem” with what you have here is that you take a function and ask to play again and that is all it should do is ask but then you also might start a new game from it. The name of the function doesn’t support that idea.

As such, they return it and it either stops there because its false or it loops again.

So to answer it, their use of naming doesn’t support it and it causes unneeded confusion.

Great job though. You’re learning and that’s what’s important :slight_smile:

Privacy & Terms