Question: Working with an array of references. Working on logic skills Sequences, also known as Straight Shooter. This game is played with six dice. This is
Working with an array of references. Working on logic skills Sequences, also known as Straight Shooter. This game is played with six dice. This is essentially a standard dice version of an old game called Hearts or Hearts Due which is played with special dice that have the letters H, E, A, R, T and S printed on the die's faces instead of spots. Play: Each player in turn rolls the six dice and scores points for any sequence of consecutive numbers thrown beginning with 1. In the event of two or more of the same number being rolled only one counts However, a throw that contains three 1s cancels out a player's score and they must start from zero again. A total of scores is kept and the first player to reach 100 points, wins the game. 1: 5 points 1, 2: 10 points 1, 2, 3: 15 points 1, 2, 3, 4: 20 points 1, 2, 3, 4, 5: 25 points 1, 2, 3, 4, 5, 6: 35 points 1, 1, 1: Cancels player's total score nb: this is a non-interactive game when played on computer. You will need two arrays of Die references, one for each player (human and computer). Use the Die class you used in a previous lab this semester. Create an object-oriented design. Die class, Game class, Driver clas After each roll, print the faces of the dice and display the points for that roll along with the total accumulated points. Once a game is won by a player, print the winner's name and then ask the user if he/she wants to play again. Keep a running total of games won and lost by each of the two players (human and computer) If you finish early, go back and re-write a version Die class so the sides have the letters ('H','E''A,'R','T, 'S') instead of the dots
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
