def battle(self): battle = Battle(self.ph, self.eh) bres = battle.battleLoop() if bres == 0: print("You died...") print("\n\n") self.printGameOver() elif bres == 1: print("You won!!!") elif bres == 2: print("You ran away...") else: print("Battle broken")
def battleTest(self): battle = Battle(self.ph, self.eh) battle.battleLoop()