SEEN ALSO: Description of battle simulator and some analysis, the GitHub code for the encounter simulator, analysis of dice equivalence
Who would win in a battle of 15 peasants against a hill giant? In Dungeons and Dragons it is quite hard to predict the difficulty of an encounter. Unlike previous editions, in fifth edition the challenge is based on XP, while the challenge rating (CR) limits how nasty the monster can get. However, it isn't quite right.
In order to find
out what the victory probabilities are as various parameters are changed
I wrote a Python script to simulate D&D battles.
The script can be found in my GitHub repository:
https://github.com/matteoferla/tangents/blob/master/DnD_Battler.py