πŸ‰ 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.