From the course: Arduino: Prototyping

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Challenge: Name

Challenge: Name

(upbeat music) - [Instructor] The prototype now has some interaction in the form of a button and zapping invaders. But part of interaction is giving the player feedback about game progress. So in this challenge, your goal is to stop the animation and display a message when all of the invaders have been zapped. This is a small bit of positive feedback for successfully completing the game. You might be wondering how to stop a sketch. One answer is that you can use an empty while statement with a constant true condition. Since the condition is always true, the sketch stays in the loop with no way out. To restart your sketch, press the reset button on your Arduino. That's it, now it's your turn to work on solving this challenge. In the next video, I'll show you my solution.

Contents