Open rkoudsi opened 2 years ago
This issue cannot be started until #5 is complete
Im in between step five and six, bear with me
also i need some clarification; when you say call roll 1000 times does that mean get the sum of that or make it produce 1000 values of roll?
also i need some clarification; when you say call roll 1000 times does that mean get the sum of that or make it produce 1000 values of roll?
You'll be calling it 1000 times and each time is independent. No summation. Basically you want to test your function 1000 times separately.
Im in between step five and six, bear with me
Totally bearing (rawr), but do make sure to completely finish 5 before starting 6. Otherwise it may make it harder for you if the git isn't fully clean.
Add a test for the
roll
function:num = roll()
. This will setnum
with a random number between 1 and 6 inclusiveprint("Num: " + str(num))
Once you can display the output of
roll
, create some automated testing:roll
1000 timesroll
is validtest_roll
test_roll
should have no parameters and return a booleanTrue
if any of the tests failFalse
if all of the tests pass