Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE PYTHON 3 ONLY! Your task Today you will be creating a different version of the game of Pig. 1. Game of Pig Redux This

USE PYTHON 3 ONLY!

Your task Today you will be creating a different version of the game of Pig. 1. Game of Pig Redux This version differs in several significant ways from our first game of Pig. The user will select the number of players playing. From 2 to 10. The user will select what the winning score will be. All of the players will be asked what their name is. When a player takes a turn the rules are completely different. o They are asked how many dice they want to roll. From 1 to 100. o Those dice are rolled and the results saved. o If they do not roll a 1, all dice are totaled and they automatically score that amount and their turn is over. o If they roll all 1s (Even if they only rolled 1 dice), they lose all of the points they have scored in the game and their turn is over. o If they roll at least one 1 but not all 1s, they score zero points for the turn and their turn is over. 2. Classes There are two classes you need to create. A game class, it controls setting up the game and asking players to take their turns. A player class, it keeps track of the players name and how many point they have. You will also make use of the dice class which does not need any modifications. 3. Head start I have created both a player class and a game class for you to use. You are to replace the comments with your own code. You are not to alter any of the methods I have created. However, you are free to add more methods or functions if you need them. 4. Yahtzee If you get everything working, you can add another rule. If a player rolls five or more dice and all of them roll the same number (except 1) then they automatically win the game.

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

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

4. Systematic use of measures of HRM.

Answered: 1 week ago