💾 Archived View for tilde.club › ~zerodni › dnddiceroller.gmi captured on 2024-05-26 at 15:01:33. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-04-19)
-=-=-=-=-=-=-
_/ _/_/_/_/_/ _/_/_/_/ _/_/_/ _/_/ _/_/_/ _/ _/ _/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/ _/ _/_/_/ _/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/_/ _/ _/_/_/_/_/ _/_/_/_/ _/ _/ _/_/ _/_/_/ _/ _/ _/_/_/ =================================================================================
#!/usr/bin/python3 import random from sys import argv dicetarget = argv[1] if len(argv) >= 2 else '70' ability_scores = [] while sum(ability_scores) <= int(dicetarget): ability_scores = [] work = [] for i in range(6): roll = [] rollresults = [] for j in range(4): roll.append(random.randint(1, 6)) roll.remove(min(roll)) work.append(roll) score = sum(roll) ability_scores.append(score) for item in work: print(item, "=", sum(item)) print("-----------------------------") print(ability_scores, "=", sum(ability_scores))