Dungeons and Dragons
h
ChrisWill (16)

Just a character creator, feel free to share your suggestions for simplifying my code.

You are viewing a single comment. View All
Highwayman (552)

@ChrisWill also, instead of using the actual class names to pick their class, I suggest using numbers that you put next to the names so you can use a nice switch statement to reduce size a little.
Edit: sorry I guess I didn’t look far enough, instead maybe put the names in an array and then rand choice from there.

Also for loops. Consider them. Remember DRY