Question:

(Python) Write a program that simulates multiple games of craps, estimate the propability that the player wins

by  |  earlier

0 LIKES UnLike

(Python) Write a program that simulates multiple games of craps, estimate the propability that the player wins

 Tags:

   Report

1 ANSWERS


  1. Yeah right.  That would be a simple quick program.

    Obviously the first part is easy, write a program that creates two variables dice1 and dice2.  Each of those variables should be a random integer between 1 and 6.  Now you have your two dice.

    You may even need to store multiple random dice rolls in an array since craps takes place over several rolls of the dice, not just a single roll.

    The problem with your question is what is the player betting on?  In craps there are dozens of bets a player could make.  The outcome of one roll of the dice can affect future bets.

    Without knowing how a player is going to bet, you can't estimate the probability of the player winning.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.