Parsing Character Data
The new character data web API is located at chargen-api.herokuapp.com. (By the way, the new character web API is written in Kotlin, using the Ktor web framework (github.com/ktorio/ktor). If you are interested, you can check out the source code for the web API at github.com/bignerdranch/character-data-api.)
When the web API data is requested, a comma-separated list of new player attributes is returned with values for the race, name, dex, wis, and str attributes.
Try visiting chargen-api.herokuapp.com to see a set of attribute values like:
halfling,Lars Kizzy,14,13,8
Reload your web browser several times to see different responses from the service.
Your first task is to convert the comma-separated string ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access