rylvion's oop playground banner

rylvion's oop playground

1 devlogs
23m 42s

I work on a RPG system, hope to interegate it into a text adventure. and if possible i might delve further and integerate it into pygame

abdurahmansharif.uk

Created a Player class in Python with:

  • Health, level, EXP, and stats.
  • EXP system with level up mechanics and automatic stat point allocation.
  • Validation methods for safe input handling.
  • Added stat point allocation method with error handling.
  • Implemented string representation for easy console display of player stats.
  • Tested the class with example player instances and EXP/stat point updates.
  • Added ANSI color formatting for terminal outputs.
Attachment
0