ShashankaShekharSharma / Python-Gaming

This Python Gaming Programs repository represents a synergistic convergence of programming acumen, as orchestrated by the collaborative endeavors of Shashanka Shekhar Sharma, Chaitanya Singh Negi, and Aaryan Anand, culminating in the creation of a suite of captivating interesting games.
MIT License
5 stars 5 forks source link

Update snakes and ladders.py #28

Closed AaryanAnand10 closed 9 months ago

AaryanAnand10 commented 9 months ago

Display Snake Bite Message: Modified the check_snake_or_ladder function to include a message when a player lands on a snake. Added a message stating "Oops! You got bitten by a snake and moved back."

Display Steps Moved Back: Calculated the number of steps the player moved back when encountering a snake: steps_back = new_position - snakes_and_ladders[new_position]. Included this information in the snake bite message: "Oops! You got bitten by a snake and moved back {steps_back} steps."

Enhanced User Experience: Added a delay of 1 second (time.sleep(1)) between turns to improve the visual flow of the game.These changes aim to make the game more informative and engaging for the player, providing additional feedback when encountering a snake.