Question: Java with 3 classes Player, Dice game, and Main CSC 176 Assignment 3 Assignment 3: Three Classes, Object Construction Evaluation (75 points) Solutions which do

 Java with 3 classes Player, Dice game, and Main CSC 176

Assignment 3 Assignment 3: Three Classes, Object Construction Evaluation (75 points) Solutions

Java with 3 classes

Player, Dice game, and Main

CSC 176 Assignment 3 Assignment 3: Three Classes, Object Construction Evaluation (75 points) Solutions which do not compile will receive an automatic 0. Refer to the CS 176 Grading Criteria.pdf for descriptions of the criteria for each below . . o o o o o o 1b. Separation of Concern (methods)-5 points 2b. Design for reuse(methods) -5 points 3.Design only what is needed- 30 points 5.Method comments- 10 points 6, Readability-5 points 7a, 7b-Testing-20 points Implement the two player dice game Stuck in the mud-Got a hot rod which works as follows: Two players take turns rolling a pair of dice. After every turn the player's score is incremented based on their rolls (as described below). The player that reaches 100 first is the winner, The value of a roll is determined as follows eIf a player is not stuck in the mud and does not have a hot rod, their score is incremented by the .If a player rolls (1, 1) they earn a hot rod which means their score is incremented by double the . Hot rods rounds can accumulate. Example: If a player with 2 turns of hot rod left rolls (1,1), their If either dice lands on 2 or a 5 then the player gets stuck in the mud. When a player is stuck in sum of the dice values that they rolled usual amount, that is 2 sum of the dice. The hot rod lasts for two additional turns score should be incremented by 4 and they will have 4 more turns with a hot rod. the mud, their score is incremented by the lower dice value. For example, if 4 and 3 are rolled only 3 is added to the score, The player remains stuck in the mud until they have a turn where their dice sum to 2 sidesofdice - 3 or more. For example, with 6-sided die, 9 or higher is required to get out of mud. If a player who is stuck in the mud rolls a (1,1) they earn a hot rod and get out of the mud. eIf a player with a hot rod turns rolls a 2 or a 5 on either die they get stuck in the mud and lose their hot rod turns Both hot rods and getting stuck in the mud start on the turn the player rolls them. So if a player rolls a (1,1) their score should be incremented by 4 and they should have the hot rod for 2 more turns The roll that gets a player out of the mud must be different from the roll that gets them stuck in the mud. Example: with a 6-sided dice, if a player rolls (5,5) they get stuck in the mud and will need to roll another high value to get out of the mud. Develop the game above by implementing the classes described below Page 1 of 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!