Đã Trao

Python Dice game required

Dear i want to make a program for the dice please help me as soon as possible this is the requirement


You are expected to write two programs: a basic program for playing a single game of Roll The Dice and, once this is designed, implemented and tested, a menu driven program to allow the user to play a number of games of Roll the Dice in a session.

General rules for playing one game of Roll the Dice

A player throws two dice. Each die has six faces. These faces contain 1, 2, 3, 4, 5, and 6 spots respectively. After the dice have come to rest, the sum of the spots of the two upward faces is calculated.

If the sum is 7 or 11 on this throw, the player wins.

If the sum is 2, 3, or 12 on this throw the player loses.

If the sum is 4, 5, 6, 8, 9 or 10 on this throw, the game continues and this sum becomes the player’s “ target.” To win, the player must continue rolling the dice until the sum of the dice “ hits the target ” (i.e., throws his/her target value). The player loses by rolling a 7 before hitting the target.

Program 1: The basic program for playing a single game of Roll the Dice, [url removed, login to view]

First the player is given a general introduction in which the rules of the game are clearly explained.

The player is then asked if he/she wishes to play a game. If so, the game is played according to the rules above, otherwise the program should terminate gracefully.

The player should be asked to press <Enter> every time the game requires the dice to be rolled and then the computer simulates the dice roll

At the end of the game the player is given suitable feedback on their performance.

Program 2: A menu driven session of Roll the Dice games, [url removed, login to view]

First the player is presented with a menu offering them three options as follows:

a) Read the instructions for playing the game of Roll the Dice.

b) Play a game of Roll the Dice

c) Exit the session

After the player chooses the exit option the computer reports back to the player:

a) The total number of games played.

b) The number of games won.

c) The total number of games lost

d) The percentage of games won

Dear please help me as soon as possible

Kỹ năng: Python

Xem thêm: python dice game, dice game python, python dice, rolling dice program python, python game dice, dice games python, dice game python program, dice game menu python, user specification requirement, specification requirement, session 13, rest specification, performance press, dice rolling game python, menu driven program python, python end, d python, write computer programs, requirement specification , python rest, python program, game playing, game performance, game menu, dice roll

Về Bên Thuê:
( 0 nhận xét ) london, United Kingdom

Mã Dự Án: #1056837