def isover(self)returns game is finished ( one of the players has wona, self getscores(return = or = or ( = and = or ( == and = def changeserver(self)switch which player is serving if self server =self playeraself server self playerb elseself server self playera def getscores(self)returns the current scores of player and player return self playera getscore()self playerb getscore(class simstatssimstats handles accumulation of statistics across multiple (completedgames this version tracks the wins and shutouts for each player def __init__(self)create new accumulator for series of games self winsa self winsb self shutsa self shutsb def update(selfagame)determine the outcome of agame and update statistics ab agame getscores(if ba won the game self winsa self winsa if = self shutsa self shutsa elseb won the game self winsb self winsb if = self shutsb self shutsb