Question: Im trying to create a craps game on linux mint but im definitely not proficient with it. I'm a new student to this class and

Im trying to create a craps game on linux mint but im definitely not proficient with it. I'm a new student to this class and its done online. I seen a post that was already made with the exact question and requirements that I need to use for my script, but when I run the command it processes wrong, it goes like this...

Name the script craps.sh

The script will get 2 random numbers between 1-6.

The script will display each number, and the sum.

If the sum is 2, 3, or 12 the user loses. Print an appropriate message.

If the sum is 7 or 11 the user wins. Print an appropriate message.

If the sum is 4, 5, 6, 8, 9, 10 this becomes the "point". The user will keep "rolling" until they get the point (they win) or 7 (they lose). Print an appropriate message.

Once the user has won or lost, ask if the user wants to try again. If so, start the game again. If not, exit.

BONUS: +10 possible: Implement a wagering system. Before each initial roll ask the user how much they wish to wager, and keep track of how much they have won/lost.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!