DEV Community

Mohammad Mehdi
Mohammad Mehdi

Posted on

Day 1 of Python: Building an RPG Character Creator in Python

๐Ÿš€ Day 1 of hashtag#freeCodeCamp: Building an RPG Character Creator in Python ๐Ÿ

Iโ€™m officially starting my hashtag#BuildInPublic journey! To kick things off, I just completed a project where I built a Python application to generate RPG characters with strict "game balance" logic.

The Challenge:
It wasnโ€™t just about printing text; I had to ensure the character followed specific rules using Python functions and input validation.

Key Features:
โœ… Smart Validation: Names must be < 10 characters with no spaces.
โœ… Balanced Stats: STR, INT, and CHA must be between 1โ€“4, and the total must equal exactly 7.
โœ… Visual UI: Built a custom representation using full (โ—) and empty (โ—‹) dots.

Example Output:
ren
STR โ—โ—โ—โ—โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹
INT โ—โ—โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹
CHA โ—โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹โ—‹

๐Ÿ’ก Skills Practiced:
โ€ข Python functions & conditionals.
โ€ข Type and value validation.
โ€ข String manipulation & formatting.
โ€ข Problem-solving with multiple constraints.

This was a great way to combine logic with a bit of creativity. Huge thanks to @freeCodeCamp for the curriculum!

Onward to Day 2. ๐ŸŽฎ

hashtag#Python hashtag#100DaysOfCode hashtag#CodingChallenge hashtag#RPG hashtag#Programming hashtag#freeCodeCamp hashtag#SoftwareDevelopment hashtag#PythonProjects

Top comments (0)