+ 1

Combat

I’ve got methods set up for taking and dealing damage but it says they dont work could someone help me please (at the bottom in the do while loop) https://code.sololearn.com/c2Ct5BAaCV8T/?ref=app

9th Jun 2020, 8:13 PM
anton
2 Réponses
+ 1
fight is a method of the class player. It is a instance method so you only can use it via a object like a.fight() the same for efight, efight is a method of the class monster. so you should use wolf.efight()
9th Jun 2020, 8:29 PM
sneeze
sneeze - avatar
+ 1
thanks
9th Jun 2020, 8:35 PM
anton