PYTHON 3.5.1 VERSION!!! DON\'T COPY AND PASTE ANSWER FROM ANOTHER QUESTION, IT D
ID: 3696071 • Letter: P
Question
PYTHON 3.5.1 VERSION!!! DON'T COPY AND PASTE ANSWER FROM ANOTHER QUESTION, IT DOESN"T WORK! IT HAS TO BE DONE IN 3.5.1 VERSION!!!
Write a Python programming BOGUS dice game.
in Bogus Dice game Bogus is nearly the opposite of the dice game Yahtzee. In Yahtzee, you have five dice that are rolled. You then have the opportunity to re-roll some of the dice in order to improve the results. The best roll possible in that game is five-of-a-kind, where all dice are showing the same value. In that game, that roll is called Yahtzee. In bogus dice, we’re trying to get as few matching dice as possible. As in Yahtzee, a turn will consist of three rolls. Unlike Yahtzee, we are forced to re-roll a set number of dice based on how good or bad our current set of dice are. Hand names: Nothing- no dice have matching values A pair- two of the dice have matching values Two pair – two sets of two dice have matching values, the remaining die is different from these Three of a kind- three dice have matching values, the other two are different Full house- three dice have matching values, the other two are different value, but match each other Four of a kind- four dice have matching values, the other is different Five of a kind (Bogus!) – all five dice have the same value Your goal in playing a hand of Bogus is to end up with the fewest dice with the same values on them. However, if you start out with a good Bogus hand, you’re forced to re-roll more of the dice. The following table shows how many dice you’re required to re-roll after each roll. If you have: You must re-roll: Nothing All five dice A pair Four of the dice of your choice Two pair, or three of a kind Three of the dice of your choice Full house, four of a kind Two of the dice of your choice Five of a kind Only one die of your choice After you end your hand, points are awarded for the following: If you have You score: Nothing 10 points A pair 5 points Two pair 4 points Three of a kind 2 points Full house 0 points Four of a kind -2 points Five of a kind -5 points The game will continue until one player has a total score of more than 40 points. For our game, you are to have the user choose a two player alternating taking turns, or the player faces off against a computer opponent.
Explanation / Answer
CS114
The basic group project will be an implementation of a dice game described below.
Bogus Dice game
Bogus is nearly the opposite of the dice game Yahtzee. In Yahtzee, you have five dice that are rolled. You
then have the opportunity to re-roll some of the dice in order to improve the results. The best roll
possible in that game is five-of-a-kind, where all dice are showing the same value. In that game, that roll
is called Yahtzee.
In bogus dice, we’re trying to get as few matching dice as possible. As in Yahtzee, a turn will consist of
three rolls. Unlike Yahtzee, we are forced to re-roll a set number of dice based on how good or bad our
current set of dice are.
Hand names:
Nothing- no dice have matching values
A pair- two of the dice have matching values
Two pair – two sets of two dice have matching values, the remaining die is different from these
Three of a kind- three dice have matching values, the other two are different
Full house- three dice have matching values, the other two are different value, but match each other
Four of a kind- four dice have matching values, the other is different
Five of a kind (Bogus!) – all five dice have the same value
Your goal in playing a hand of Bogus is to end up with the fewest dice with the same values on them.
However, if you start out with a good Bogus hand, you’re forced to re-roll more of the dice. The following
table shows how many dice you’re required to re-roll after each roll.
If you have:
Nothing
A pair
Two pair, or three of a kind
Full house, four of a kind
Five of a kind
You must re-roll:
All five dice
Four of the dice of your choice
Three of the dice of your choice
Two of the dice of your choice
Only one die of your choice
After you end your hand, points are awarded for the following:
If you have
Nothing
A pair
Two pair
Three of a kind
You score:
10 points
5 points
4 points
2 points
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.