Question
I'm trying to write a java program I need to write a program that will simulate the penny drop game, a box has six marked
I'm trying to write a java program I need to write a program that will simulate the penny drop game, a box has six marked slots and the #6 slot is slightly larger. For 2 to 6 players, each player gets 12 Pennies. The object of the game is to be the first to get rid of all your pennies. Here are the rules:
1. Determine who goes first by each player rolling the single dice cube. Highest # goes first; then play proceeds in a clockwise direction.
2. Player rolls the die and must put a penny in the game board slot corresponding to the number shown on the die.
3. If the player rolls a number that already has a penny in it, they must take all of the pennies showing on the board and then the turn goes to the next player.
4. A player must take at least one roll, but can take as many rolls as they want until they get stuck as in rule #3.
5. Hole number 6 lets the penny go inside the box so you can roll as many as 6s as possible without penalty \
6. Play continues until a player runs out of pennies and is declared the winner. The pennies are redistributed to start the next game.
In particular I need help making an array that will be the box and store the pennies.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started