object-oriented design new gamewe will specify the skill levels of the players this suggests classlet' call it rballgamewith constructor that requires parameters for the probabilities of the two players what does our program need to do with gameobviouslyit needs to play it let' give our class play method that simulates the game until it is over we could create and play racquetball game with two lines of codethegame rballgame(probaprobbthegame play(to play lots of gameswe just need to put loop around this code that' all we really need in rballgame to write the main program let' turn our attention to collecting statistics about the games obviouslywe will have to keep track of at least four counts in order to print summary of our simulationswins for awins for bshutouts for aand shutouts for we will also print out the number of games simulatedbut this can be calculated by adding the wins for and here we have four related pieces of information rather than treating them independentlylet' group them into single object this object will be an instance of class called simstats simstats object will keep track of all the information about series of games we have already analyzed the four crucial pieces of information now we have to decide what operations will be useful for starterswe need constructor that initializes all of the counts to we also need way of updating the counts as each new game is simulated let' give our object an update method the update of the statistics will be based on the outcome of game we will have to send some information to the statistics object so that the update can be done appropriately an easy approach would be to just send the entire game and let update extract whatever information it needs finallywhen all of the games have been simulatedwe need to print out report of the results this suggests printreport method that prints out nice report of the accumulated statistics we have now done enough design that we can actually write the main function for our program most of the details have been pushed off into the definition of our two classes def main()printintro(probaprobbn getinputs(play the games stats simstats(for in range( )thegame rballgame(probaprobbcreate new game thegame play(play it stats update(thegameget info about completed game print the results stats printreport( have also used couple helper functions to print an introduction and get the inputs you should have no trouble writing these functions