Snake and Ladder is played on a board of 100 squares (10∗10). There can be 1-4 players. Each player starts from square 1

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Snake and Ladder is played on a board of 100 squares (10∗10). There can be 1-4 players. Each player starts from square 1

Post by answerhappygod »

Snake And Ladder Is Played On A Board Of 100 Squares 10 10 There Can Be 1 4 Players Each Player Starts From Square 1 1
Snake And Ladder Is Played On A Board Of 100 Squares 10 10 There Can Be 1 4 Players Each Player Starts From Square 1 1 (333.82 KiB) Viewed 34 times
Snake and Ladder is played on a board of 100 squares (10∗10). There can be 1-4 players. Each player starts from square 1 and roll a dice containing 6 digits when their turn comes. The player moves forward based on the random outcome of their dice and the first player to reach 100mth ​ square wins the game. To reach the 100mth ​ square and win the game, player needs to exactly get the required digit, that is, if a player is in 99mth ​ square, he needs to get exactly 1 to win the game, the player will not move with anything except a 1 . Each player should have a colour, or a name assigned to them. So, after each turn, the program should display: [Jane] rolled a [5] and moved from square [10] to [15]. Snakes and ladders are placed on the board randomly at the starting of the game. Players can select the number of snakes and ladders before starting. There are three difficulty level in the game- easy, medium, and hard. Easier version has more ladders, and less snakes and harder versions has more snakes and less ladders. Each snake has a head and a tail on the board. If the player lands on a square where a snake's head is, the player should move down to the square where the end of the snake's tail is. Similarly, if the player lands on a square where the bottom of the ladder is, the player should move up to the square where the top of the ladder is. That is, the head of a snake is always in a square of a higher number than the square where the end of its tail is, and the top of a ladder is always in a square of a higher number than the square where its bottom is. If a player rolls 6, they move the number given (moving down a snake or up a ladder if moving six squares forward lands on one of them) and then they get an additional turn.The game continues until all players, but one, reach square 100. Easy difficulty level has 3 biscuit and 3 big-stick, medium difficulty level has 2 biscuit and 2 big-sticks, hard difficulty level has 1 biscuits and 1 big-sticks. The board generates biscuits before starting the game. If a player lands on a biscuit square they can keep the biscuit and feed it to the next snake that they encounter so that they do not have to move down to the tail square. If the biscuits are not used throughout the game, players get extra point after finishing the game based on the number of the biscuits they have. There are randomly generated 'big sticks' in the game too. If a player lands on a big stick square, they can keep the big stick and use it to create an extra step on the next ladder that they encounter, which will move them up 10 squares (one row) on the board from the square where the head of the ladder is. Note: a big stick cannot be used for any ladder the top of which is in the row which includes the 'Finish' square (the row of squares from 91 to 100). Instead, the player gets extra point for the unused sticks at the end of the game. If a player is in a square except the 1∼ st ​ and the 100∼th ​ square and another player falls on him, the first player gets sent to the first square. The game continues until everyone except one player reaches the 100mth ​ square. Depending on the players number, every player is declared 1∼sst ​22wnd ​,3mrd ​ and 4mth ​ chronically. Please use OOP, different classes and objects and proper comments in the coding, Thanks
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply