Problem 11 (100pts)
A strategy can also take advantage of the Swine Swap rules. The Swine Swap strategy always rolls 0 if doing so triggers the rule and the player's gain in this turn is at least cutoff
points. In other cases, the strategy rolls num_rolls
.
Before writing any code, unlock the tests to verify your understanding of the question.
$ python ok -q 11 -u
Once you are done unlocking, begin implementing your solution. You can check your correctness with:
$ python ok -q 11
Once you have implemented this strategy, update run_experiments
to evaluate your new strategy against the baseline.