Made with <3 by @1KVueltasAlCampo and zacwastaken
This is an emulation of the original Snakes and Ladders game. The game plays out with a fixed number of players, represented in-game by a "O" of one of the following colors:
-
#c1272d
as "RED" -
#f15a24
as "ORANGE" -
#0283ba
as "CYAN" -
#00008e
as "DARK BLUE" -
#c29b02
as "YELLOW" -
#39b54a
as "GREEN" -
#dd3358
as "PINK" -
#93278f
as "PURPLE" -
#a0bf00
as "LIME"
The game has the possibility to run by itself by rolling the dice every second. The game can be played by up to 9 players and at most a board of 14x14 (The recommended range for the board is of 4x4 - 10x10, although going up to 14x14 will load the game at the cost of more loading time).
The main menu has 3 options: "New Game", "Leaderboard" and "Exit". The former option creates a new game, and asks the user to input the size of the board, and the amount of snakes and ladders that the game will have. It also asks for the user to determine the colors that will be playing. The game will warn the user if there are less than 2 players selected or if the size exceeds the recommended. Once the game has started, a timer will start running, and at that point the user has 4 options: roll the dice, "Auto-RUN!", end the game or restart it.
By rolling the dice, the user will move one piece at a time, and it will show accordingly. The board represents every ladder with a green number that will appear twice on the board. If a player steps on the first occurrence of said number on the board, the game will move the player to the other occurrence. It also represents every snake as a red capital letter, who behave similarly to the ladders, except they react to the player stepping on the last occurrence of the letter that represents the snake. Once a player reaches (or exceeds) the end, the game will halt the timer, and request a name to identify the winner with. Once the name is confirmed, the winner is stored in memory along with its score and the game ends, closing the board and relaunching the main menu.
This option will run the game automatically and will roll the dice every second. Every rule described previously still applies to this option.
Ending the game will cut the execution of the game prematurely and will not save the winner. Restarting the game will prompt the user again for the board size, the players and the snakes and ladders for the new game.
The board is displayed as a grid with a checkerboard pattern, with every tile on it labeled with a number in black in a snake fashion (left to right, up, right to left, up and so on). The game pieces will be displayed at the center of the tile they are currently in, and, if any, the snake / ladder label will be at the bottom of each tile. There is a sidebar at the right of the screen with the Auto-RUN! button, the dice, the restart and end game buttons, the list of colors playing, and the timer.
The second option in the main menu will open a list of names when clicked. This list contains the names of the winners in chronological order. When an entry is right-clicked, a window containing the score, and the name of the player that was clicked will open up. Pressing the return button at the bottom of the leaderboard window will close it and relaunch the main menu.
Finally, the exit button on the main menu will close the game immediately.
- Inconsistent addition of winners to leaderboard.
- Board creation may bug out (extremely rare bug)