A small Python OOP demo where two characters fight each other in the terminal. Characters, weapons, and a colored health bar each use their own class. The health bar uses ANSI colors and fills with [] and _ as HP moves. Weapons define damage, the hero can change them, and main.py runs a loop that clears the screen, shows the bars, applies attacks, and waits for Enter along with weapon switching for the Hero character.
main.py: runs the battle loopcharacter.py: character logic plusHeroandEnemyweapon.py: weapon classes and presetshealthbar.py: draws colored health bars
python main.pyPress Enter for each round. Ctrl+C to quit.