Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions