Question: Write a function testcraps that accepts a positive integer n as an input, simulates in games and craps, and returns the fraction of games

Write a function testcraps that accepts a positive integer n as an input, simulates in games and craps, and returns the fraction of games the player won. the testcraps function should not make dice rolls directly, instead... testCraps function should call the craps function repeatedly and keep track of the results if you your craps and testCraps function simulate the game correctly without any extra rolls, you should be able to hit the results below exactly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
