TORONTO KIDS COMPUTER CLUB | Tuesday Python Homework 18:30 – 22.03.01.
20373
post-template-default,single,single-post,postid-20373,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Tuesday Python Homework 18:30 – 22.03.01.

06 Mar Tuesday Python Homework 18:30 – 22.03.01.

Question:

Modify the program we made in the class. Try to add hp attribute to the Enemy class and create a method isKilled() to return True if the hp less than 1 otherwise return False.

Add getDamage() method to the Weapon class so it will return the damage of the weapon you selected.

No Comments

Sorry, the comment form is closed at this time.