Hard
Python• OOP
Game Character System
Build a base Character class with health and attack.
Subclasses: Warrior, Mage, and Archer with unique abilities.
Use composition for Weapon and Armor. Implement a battle simulation using polymorphism.
OOP Focus: Composition over inheritance.
Note: This is statement-only in the current Practice version; stdout should be empty.
Sample Test Verification
1 Test CaseStatement & Architecture VerificationThis drill validates class blueprints, object attributes, and method state transitions without requiring console printing.
solution.py
Pyodide v0.26.4 WASM
Initializing Monaco Python Environment...
Input (stdin)
(empty string)
Expected Output (stdout)
(no output expected)