Question: I am needing help/guidance writing a VBA Program to make the game Chutes and Ladders Snakes and ladders [1] is the original version of the

I am needing help/guidance writing a VBA Program to make the game "Chutes and Ladders"

Snakes and ladders [1] is the original version of the game Chutes and Ladders. This game consists of a square board made up of 100 squares (ten squares by ten squares). To play, players (usually two or three) roll a die and advance their token the rolled number of spaces, with the arrival at the end of the board the hundredth square - being the ultimate goal. In order to make the game interesting, a number of snakes and ladders and included in the game. If a players token lands on the lower-numbered end of a ladder, the player moves the token up to the ladders higher-numbered square. If the player lands on the higher numbered square of a snake (or chute), the token is moved down to the snakes lower- numbered square. Players take alternate turns rolling the die.

Write a VBA Sub Program to create the snakes and ladders game for two players. The player who reaches the 100th square wins the game. Listed below are the rules that you need to keep in mind while building the game:

a. Create a 10 X 10 board and place the snakes and ladders as shown above.

b. Player one will start the game by rolling the die, which is a randomly generated number between 1 and 6. Player 1 should advance his/her token the rolled number of spaces. Similarly player two takes his/her turn. Players should alternate their turns.

c. If a players token lands on the lower-numbered end of a ladder, the player moves the token up to the ladders higher-numbered square. If the player lands on the higher-numbered square of a snake, the token is moved down to the snakes lower- numbered square.

d. The player who first reaches the 100th square is declared the winner.

The green arrow represents the ladders, and the red arrow represents the snakes. For example, if a players token lands on 18, the player should move up his/her token to 44. If a players token lands on 32, the player should move his/her token down to 11.

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!