Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**PYTHON** In Ship, Captain, and Crew, players have a cup with five dice. Each player gets three turns in which to roll a six (the

**PYTHON**

In Ship, Captain, and Crew, players have a cup with five dice. Each player gets three turns in which to roll a six (the Ship), a five (the Captain), and a four (the Crew). The first time one of these numbers is rolled, the die is removed from play. After each of those three numbers is rolled, the number of spots on two remaining dice are added up to be the player's score.

The catch is that the six, five, and four need to be rolled in order. The six needs to be rolled before or at the same time as the five. The five needs to be rolled before or at the same time as the four. If one of the lower numbers is rolled before the higher numbers, it is ignored and the player needs to go again.

If the player completes the Ship, Captain, and Crew in the first or second throw, he or she has the option to keep the score from the two remaining dice, or roll those two again to try to get a higher score. Both dice have to be thrown together one cannot be set aside while the other one is rolled.

The game can be played with any number of players and in one or many rounds. In the end, the player with the highest score wins.

Example Game 1

Roll 1: 6 6 3 1 1

Since there is a six in this roll, (the "Ship"), one of the sixes is removed. The next roll will use the four remaining dice.

Roll 2: 6 5 4 3

Since the player already rolled a six, the six in this roll does not matter. However, the player needed the five (for the Captain) and the four (for the crew). Those two dice are set aside. Now, the player has a six and a three. The player can keep those two dice, for a score of nine, or roll again to try to get a higher score. The player decides to keep the nine and not take the third roll.

Example Game 2

Roll 1: 6 5 4 3 2

This player has been very lucky and rolled a six, five, and four all in the first round. That makes the Ship, Captain, and Crew, and the two remaining dice add up to five. Because this is a low score and the player has two more turns, the player decides to take a second roll.

Roll 2: 1 1

This total score of two is very bad, so the player uses the third roll to try for a higher number of points.

Roll 3: 6 5

The six and five give a total score of eleven an excellent result.

Example Game 3

Roll 1: 4 4 3 5 2

The game requires that a six be rolled first. Since there is no six here, the player has to roll all five dice again.

Roll 2: 4 1 6 2 3

This roll gets the six, and that die is set aside. The game requires a five next, and since there is no five, the player must roll again.

Roll 3: 1 3 5 3

This roll produces the five, but there is no four. The four is required before the player can receive any points. Since there is no four in this final roll, the player gets no points because the Ship, Captain, and Crew was not completed..

Example Game 4

Roll 1: 1 2 3 4 5

There is no six, so the player must roll all five dice again.

Roll 2: 2 4 3 5 3

Again, there is no six, so the player rolls all five again.

Roll 3: 3 4 5 5 6

This roll has the six, five, and four. That lets the player take the remaining two dice (a five and a three) for the final score of eight. Since this was the third roll, the player cannot go again.

-------------------------

Exercise 1

Make this a multi-player game. Start by asking how many people want to play. Then, offer the game to Player 1, get their total, and repeat for each player. Print out who the winner is at the end.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions