()
| 55 | |
| 56 | # Main-function of the program that sets up the dices for the user as they want them. |
| 57 | def 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 | # ================================================================= |
no test coverage detected