Problem 10 (100pts)

A strategy can try to take advantage of the Picky Piggy rule by rolling 0 when it is most beneficial to do so. Implement picky_piggy_strategy, which returns 0 whenever rolling 0 would give at least cutoff points and returns num_rolls otherwise.

Hint: You can use the function picky_piggy you defined in Problem 2.

Before writing any code, unlock the tests to verify your understanding of the question.

$ python ok -q 10 -u

Once you are done unlocking, begin implementing your solution. You can check your correctness with:

$ python ok -q 10

Once you have implemented this strategy, change run_experiments to evaluate your new strategy against the baseline. Is this strategy an improvement over the baseline?