Question: For this project you will write a complete Java program that allows two human players to play a game of Pig against each other. This
For this project you will write a complete Java program that allows two human players to play a game of Pig against each other. This program will be text-based. The game of Pig is played between two people who take turns rolling a pair of six-sided dice. The goal is to accumulate 100 points in your bank before your opponent does. On each turn, a player may roll the dice multiple times, accumulating a running sum of turn points. After each roll, the player must choose to pass the dice to the other player, banking his/her accumulated points for that turn, or to roll again (be a pig) in an attempt to accumulate more points. However, if a one is rolled on either die, the player forfeits all points accumulated during that turn and must pass the dice to the other player. If both dice show a one (snake eyes), the player forfeits all points accumulated up to that point in the game and must pass the dice to the other player.
here is a link to the full question
https://github.com/Grimlek/Course-Work/tree/master/Pig%20Game
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
