Introduction: Snakes and Ladders, known originally as Moksha Patam, is an ancient Indian board game for two or more players regarded today as a worldwide classic.It is played on a game board with numbered, gridded squares. A number of "ladders" and "snakes" are pictured on the board, each connecting two specific board squares. The object of the game is to navigate one's game piece, according to die rolls, from the start (bottom square) to the finish (top square), helped by climbing ladders but hindered by falling down snakes. The game is a simple race based on sheer luck, and it is popular with young children.
Concepts required: a python program to play text based snake and ladder game in terminal. Few basic concepts used in this code are:
- Dictionary
- List
- Generating random number
- Selecting a Random value from a list
- Adding wait/sleep in program
- Conditional Statements i.e. IF and ELSE
- Getting input from user
Python Libraries Used:
- time
- Random
- Sys
Technologies Used:
- Python 3.8