main winsa winsb proba probb printintro getinputs proba probb winsa winsb simngames printsummary proba probb scorea scoreb simonegame scorea scoreb true|false gameover figure level structure chart for racquetball simulation if serving =" "if random(probaa wins the serve scorea scorea elsea loses the serve serving "bof courseif is not servingwe need to do the same thingonly for we just need to attach mirror image else clause if serving =" "if random(probascorea scorea elseserving "belseif random(probbscoreb scoreb elseserving "aa wins the serve loses serve wins the serve loses the serve that pretty much completes the function it got bit complicatedbut seems to reflect the rules