python_text_battle icon indicating copy to clipboard operation
python_text_battle copied to clipboard

Simple rpg type text-based python battle script

Results 13 python_text_battle issues
Sort by recently updated
recently updated
newest added

Optimised code for printing stats properly. Removed unnecessary `while` loops and changed code of 20+ line with just 4 lines of code, without losing any functionality

Located at line 90, "continue" (I believe) loops back up to the start of "while" (line 55) when 0 is pressed. However, it looks like it moves on to the...

I saw your udemy course and liked the way you taught! I went through your code and realized that this code can be written in an scalable way! You can...

This pull request configures this repository to be run on Repl.it. It adds a `.replit` configuration file and a Repl.it badge to the `README`. You can read more about running...

Traceback (most recent call last): File "main.py", line 201, in (spell, magic_dmg) = enemy.choose_enemy_spell() TypeError: 'NoneType' object is not iterable

Hi Nick, Great tutorial! I noticed something in the code which meant that it doesn't realise when all enemies or players have been killed. Hopefully below provides a solution for...

Hi Nick! I am currently going through your python course and managed to follow this entire RPG section so far. However, it appears that this RPG battle script will occasionally...

There are some committed files that need not be in the repo, namely the `__pycache__` folder and the `.idea` folder. They should be ignored by local gitignore rules because they...

Limiting recursion error and NoneType error.

Minimal mp condition to restrict looping when enemy mp falls bellow minimum spellcost. Should have a function determining min spell cost, and save this in a variable and use that...