Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to design and implement a Dice Game program that runs a short game that uses dice. The following shows a sample run

You are required to design and implement a "Dice Game" program that runs a short game that uses dice.

The following shows a sample run if the game was simply highest roll of two dice:

How many players are there?

Rolling Dice For Player 1...8

Rolling Dice For Player 2...6

Rolling Dice Fore Player 3...11

The Winner was Player 3 with a roll of 11

Do you want to play again? (y/n) y

How many players are there ? (1...4) 4

Rolling Dice For Player 3...11

Rolling Dice For Player 2...10

Rolling Dice For Player 3...5

Rolling Dice For Player 4...6

The winner was player 2 with a roll of 10

Do you want to play again ? (y/n) n

bye

>>>

Zilch - Each player rolls six dice. They score points based on what they roll. A one scores 100 points, a five 50 points, three of the same number is the number x 100 (1000 points for three ones). However they can reroll any dice they like trying to get a better score. If they do not score in a roll their points are scored and the next player rolls. If a player scores all six dice they continue to roll adding to their score.

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_2

Step: 3

blur-text-image_3

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

Transport Operations

Authors: Allen Stuart

2nd Edition

978-0470115398, 0470115394

Students also viewed these Programming questions