MCPcopy Create free account
hub / github.com/geekcomputers/Python / getDices

Function getDices

diceV2_dynamic.py:57–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56# Main-function of the program that sets up the dices for the user as they want them.
57def getDices():
58 dices = []
59 sides = None
60 diceAmount = None
61 sideLowerLimit = 3 # Do Not Touch!
62 diceLowerLimit = 1 # Do Not Touch!
63
64 sides = pickNumber(sides, "How many sides will the dices have?: ", sideLowerLimit)
65 diceAmount = pickNumber(
66 diceAmount, "How many dices will do you want?: ", diceLowerLimit
67 )
68
69 for i in range(0, diceAmount):
70 d = Dice()
71 d.setSides(sides)
72 dices.append(d)
73
74 return dices
75
76
77# =================================================================

Callers 1

outputFunction · 0.85

Calls 4

setSidesMethod · 0.95
pickNumberFunction · 0.85
DiceClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected