

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Welcome to Object-Oriented Programming
incomplete
2: Clean Code
incomplete
3: DRY Code
incomplete
4: DRY Review
incomplete
This lesson's interactive features are locked, please to keep using them
Object-oriented programming (OOP) organizes data and behavior into objects to (allegedly) make code cleaner and easier to maintain.
In this course, you'll build parts of Age of Dragons, a real-time strategy game where armies of humans, orcs, and dragons fight in top-down battles.
One of the least maintainable coding practices is using misleading function names. Look at the destroy_wall function. Based on its name, you'd assume destroy_wall destroys a single wall, but if you read the code, you'll see that it handles multiple walls!
Rename the function to destroy_walls. Then submit your answer.