Problem 6 (200pts)
Implement always_roll
, a higher-order function that takes a number of dice n
and returns a strategy that always rolls n
dice. Thus, always_roll(5)
would be equivalent to always_roll_5
.
Before writing any code, unlock the tests to verify your understanding of the question:
$ python ok -q 06 -u
Once you are done unlocking, begin implementing your solution. You can check your correctness with:
$ python ok -q 06