just copying it was illogical. Would downvote.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Not just copying it was illogical. Would downvote.

Vingt-et-un
✪ vingtEtUn.py
Vingt-et-un is a dice game (known as Blackjack in the USA), where a player competes against the
computer (house).
The goal of the game is to score 21 points, or as near as possible without going over. The two players
take turns throwing two dies as many times as desired and adding up the numbers thrown on each
round.
ⒸA player who totals over 21 is bust and loses the game.
→ The player whose total is nearest 21, after each player has had a turn, wins the game.
→ In the case of an equality high total, the game is tied.
The game is over at the end of a round when:
Ⓒ One or both players are bust.
Ⓒ Both players choose to stay.
Notes
→ Once a player totals 14 or more, one of the dies is discarder for the consecutive turns.
The house must throw the dice until the total is 17 or higher. At 17 or higher, the house must
stay.
Project Requirements
The program will start by prompting the user for the name of the player.
The game will be implemented using a menu-driven interface that provides the following options:
1. See the Rules.
2. Play Vingt-et-un.
3. Quit.
If the user chooses 1 from the menu, display the rules of the game.
If the user chooses 2 from the menu
Go into a loop of rounds where player & house will take turns throwing the dice.
At each turn the system will ask the player/house whether to stay or roll.
→ If the house has a running total of 17 or higher, it stays, and the turn passes to the player.
→ If the player/house option is to roll, the program simulates the roll of the two dies and updates
& displays the player's running total.
Transcribed Image Text:Vingt-et-un ✪ vingtEtUn.py Vingt-et-un is a dice game (known as Blackjack in the USA), where a player competes against the computer (house). The goal of the game is to score 21 points, or as near as possible without going over. The two players take turns throwing two dies as many times as desired and adding up the numbers thrown on each round. ⒸA player who totals over 21 is bust and loses the game. → The player whose total is nearest 21, after each player has had a turn, wins the game. → In the case of an equality high total, the game is tied. The game is over at the end of a round when: Ⓒ One or both players are bust. Ⓒ Both players choose to stay. Notes → Once a player totals 14 or more, one of the dies is discarder for the consecutive turns. The house must throw the dice until the total is 17 or higher. At 17 or higher, the house must stay. Project Requirements The program will start by prompting the user for the name of the player. The game will be implemented using a menu-driven interface that provides the following options: 1. See the Rules. 2. Play Vingt-et-un. 3. Quit. If the user chooses 1 from the menu, display the rules of the game. If the user chooses 2 from the menu Go into a loop of rounds where player & house will take turns throwing the dice. At each turn the system will ask the player/house whether to stay or roll. → If the house has a running total of 17 or higher, it stays, and the turn passes to the player. → If the player/house option is to roll, the program simulates the roll of the two dies and updates & displays the player's running total.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY