Game development · Unit 6: Turn-based battles · Lesson 3
Win or lose?

Win or lose?

The battle goes on until one fighter runs out of health. We use while and break to stop the moment someone wins.

MAZOON Academy: coding and AI for kids