+ 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
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()
+ 1
thanks