π Fix the Goblin Bug
Story
βοΈ Your hero attacks the goblin, but instead of losing health, the goblin gains it! Fix the bug to restore balance to the kingdom.
Objective
Fix the bug so the goblinβs health decreases when attacked.
Starter Code
enemy_health = 100
hero_attack = 10
# BUG: The goblin gains health instead of losing it
enemy_health = enemy_health + hero_attack
print("Goblin health:", enemy_health)π» Your Code
Loading...
π‘ Hint: Fix the bug in line 4.