UPDATES Notes
unknown
plain_text
a year ago
675 B
5
Indexable
Fixed the attack_multipliers typo, changed attack_multiplier to attack_multipliers in the Character class for both player and enemy. Corrected random.int to random.randint, I fixed the typo random.int to random.randint in the attack method. Fixed HP Print Statement, I corrected print(f"Your enemy is aa {enemy.name} with {player.hp} HP") to print(f"Your enemy is {enemy.name} with {enemy.hp} HP"). I fixed Attack Choice Logic, I Corrected the logic for determining the attack_choice to check against the correct variable attack_choice instead of action. added Missing strip() Method, Added strip() to the attack_choice input to handle any leading or trailing whitespace.
Editor is loading...
Leave a Comment