Question: Finally, so that we can check your implementation against a lengthier sequence of guesses without having to play an interactive session, implement the play _
Finally, so that we can check your implementation against a lengthier sequence of guesses without having to play an interactive session, implement the playbatch function, which will take the patternlength argument as your playinteractive function did, but will also take a sequence of guesses. The function will return the total numbers of wins and losses, as determined by the same algorithm as before.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
