python_text_battle
python_text_battle copied to clipboard
Better Implementation of Choice Handlers
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 make a JSON file of all the actions and assign a index to them. Next thing is to make a file defining all the functions and storing the objects in a variable mapping JSON items to the variables in a dictionary. This way the program would be more scalable and adding new features won't be hassle (adding if-elif conditions and code duplicacy)

Calling the function becomes way more easier:
