go to previous page   go to home page   go to next page hear noise

Answer:

What advantage does the computer have in this game?

The computer's throw must be beaten by the player. In case of a tie, the computer wins the round.

What advantage does the player have in this game?

The player can select from a uniform distribution (one 11-sided die) or a non-uniform distribution (two regular dice) with 6-7-8 as the most common outcomes. Use the uniform distribution when a high number is needed; use the non-uniform distribution when 6-7-8 is enough to win a round.
Is this enough to overcome the computer's advantage? Play the game and see!


Flow Chart

Here is the main logic of the program. Study how it implements the rules of the game. Some additional details are needed for some of the steps.

The "Player's Toss" box, for one, needs to implement the details of giving the player a choice of dice and then throwing that choice.


main logic

QUESTION 18:

How many random number generators are needed for this program?