Code Monsters Academy
Home › Course contents › Level 12: Graduation Battle
Putting it all together

Level 12: Graduation Battle

Chapter 1 · Starter Village

This level combines everything you've learned. Write it all yourself:

① Use print to have {PET} shout a battle cry
② Use for to repeat 15 turns
③ Use if shielded(): to decide: defend() if it's blocking, otherwise attack()

Can't remember how? Look back at Level 11, or click "Hint".

GoalShout a battle cry, then defeat the Blazursa (84 HP).
TipWrite the print line first, then the for.
Starting code
# ① Shout a battle cry

# ② Repeat 15 turns, checking with if each turn
Practise this in the game
← Previous levelLevel 11: Perfect TimingNext level →Level 1 - Team Roster