()
| 79 | |
| 80 | |
| 81 | def 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 | |
| 98 | if __name__ == "__main__": |
no test coverage detected