Dungeon master
Sign in to test your solution.
# Dungeon master program
# -------------------------
# Import libraries
# -------------------------
# -------------------------
# Subprograms
# -------------------------
# Function to return if a skill check is passed in DnD5e
def check_skill(skill, modifier, dm_value):
# -------------------------
# Main program
# -------------------------
result = check_skill(skill, modifier, dm_value)
print(result)
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.
Python sandbox
This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.