My son who is learning software programming shown me his simple C code to create a simple game of Snakes and Ladders, his code just the game logic and display the game running status using printf output to log.
Do you feel lucky today? try your luck, click and choose which player will be the winner !
- The game has an additional feature compared to the original Snakes and Ladders game, if a player arrived at a spot which has other player then the other player will be kicked back to first position.
- The number of Snakes and Ladders will be random, Snakes could be more or less than Ladders.
- Every time the web is refreshed, the locations of Snakes and Ladders will be changed.
- If player arrived in Snake position then the player position will go down.
- If player arrived in Ladder position then the player position will go up.
- The total players is fixed at 4, Chicken, Panda, Monkey, and Pig.
- Feel free to see the JS code, it is very simple and only to show what are the required steps and logic.