break, continue, while True — dungeons, obstacle courses, loot filters, and boss battles
No starter code in these exercises!
These are more challenging — you need to write the full solution from scratch. Make sure you're comfortable with Loops Part 1 first.
Exit loops early with break, skip iterations with continue, and the while True pattern.
Explore a dungeon and break out when you find the exit.
Use continue to skip spikes and collect items on a path.
Skip cheap loot with continue and stop when your bag is full with break.
Fight a boss using while True, continue for shields, and break for the kill.
Unreachable code, missing updates, infinite loops, and break vs continue.