Problem 6 (100pts)
Update your play
function so that a commentary function is called at the end of each turn.
The return value of calling a commentary function gives you the commentary function to call on the next turn.
For example, say(score0, score1)
should be called at the end of the first turn.
Its return value (another commentary function) should be called at the end of the second turn.
Each consecutive turn, call the function that was returned by the call to the previous turn's commentary function.
Hint: For the unlocking tests for this problem, remember that when calling print with multiple arguments, Python will put a space between each of the arguments. For example:
>>> print(9, 12) 9 12
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