Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Once you figure out how this works, it is pretty easy. You need to realize that this is actually a 1 D array bent around
Once you figure out how this works, it is pretty easy.
You need to realize that this is actually a D array bent around a square.
Create parallel arrays. One for buttons and one for values. The button text matches the corresponding value.
At first, each element has a value of
If the game rolls a then the player, currently in spot moves forward spots and now is in spot and that element increments by
If the game rolls a then the player, currently in spot moves forward spots and now is in spot and that element increments by
You will have to keep track of the playerPosition, since that is where the player is currently standing. Also, you will have to wrap when you get back to the beginning.
Addition: Add a button that rolls the die ONCE, and the results are all updated.
a Create a GameBoard application that represents a game board with spots. Use
buttons to represent the spots. The application should simulate dice rolls when
the user clicks Dice Rolls and store in an array with meaningful indexes the total
number of times each spot was landed on based on the dice roll moving around the
board clockwise from the Start location The total count should be displayed on each
button. The application interface should look similar to the following after clicking
Dice Rolls:
b Advanced. Modify the application so that spot is a Go Back" location. If spot is
landed on count it as being landed on but go back to spot count it as being landed
on and continue from spot Also, if doubles are consecutively rolled then go back to
spot
c Advanced. Add another feature. Think 'Snakes and Ladders' or 'Monopoly'.
Submission: Submit your complete project, zipped, here, along with a screen shot of it running. Include a comment explaining part cusing C# include sound feature and other intresting features
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