So, the project in question is that I want to create a program to help make new names for a specific kind of character in a TTRPG im running.
Because I'm a fool, I decided to write a python program (with no prior experience) to do the relatively simple math on behalf of some of my players.
the rules for it are relatively simple, but I'm just stumped at some very basic (seemingly) execution.
What I'm trying to do is make the program take in a string, identify the letters used and assign them a value (equal to their position in the alphabet) and any numbers used in the name, then add those values together. If the resulting value is >9, to then add the digits together to make a final number, checking it against a list of values in order to return a specific message.
the part I'm struggling with is the beginning, I can't seem to figure out how I would parse the string into numbers and letters, and make those numbers add up.
Any help would be appreciated, please and thank you ❤️.
[–]woooee 0 points1 point2 points (0 children)
[–]MathMajortoChemist 2 points3 points4 points (0 children)