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

Function output

diceV2_dynamic.py:81–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79
80
81def output():
82 dices = getDices()
83 input("Do you wanna roll? press enter")
84 cont = True
85 while cont:
86 rollOutput = ""
87 for dice in dices:
88 rollOutput = rollOutput + str(dice.roll()) + ", "
89 rollOutput = rollOutput[:-2]
90 print(rollOutput)
91
92 print("do you want to roll again?")
93 ans = input("press enter to continue, and [exit] to exit")
94 if ans == "exit":
95 cont = False
96
97
98if __name__ == "__main__":

Callers 1

diceV2_dynamic.pyFile · 0.70

Calls 2

getDicesFunction · 0.85
rollMethod · 0.45

Tested by

no test coverage detected