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

Function result

dice_rolling_simulator.py:36–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35# Result function which is our dice chooser function
36def result():
37 # user_dice_chooser No idea how this got in here, thanks EroMonsterSanji.
38
39 print("\r\nGreat! Begin by choosing a die! [6] [8] [12]?\r\n")
40 user_dice_chooser = input(">")
41
42 user_dice_chooser = int(user_dice_chooser)
43
44 # Below is the references to our dice functions (Below), when the user chooses a dice.
45 if user_dice_chooser == 6:
46 dice6()
47
48 elif user_dice_chooser == 8:
49 dice8()
50
51 elif user_dice_chooser == 12:
52 dice12()
53
54 # If the user doesn't choose an applicable option
55 else:
56 print("\r\nPlease choose one of the applicable options!\r\n")
57 result()
58
59
60# Below are our dice functions.

Callers 1

startFunction · 0.70

Calls 3

dice6Function · 0.85
dice8Function · 0.85
dice12Function · 0.85

Tested by

no test coverage detected