Problem 7 (200pts)
A pure strategy only has a fixed number of possible argument values. In a game to 100, there are 100 possible score
values (0-99) and 100 possible opponent_score
values (0-99), giving 10,000 possible argument combinations.
Implement is_always_roll
, which takes a pure strategy and returns whether that strategy always rolls the same number of dice for every possible argument combination.
Before writing any code, unlock the tests to verify your understanding of the question:
$ python ok -q 07 -u
Once you are done unlocking, begin implementing your solution. You can check your correctness with:
$ python ok -q 07