Home » Projects » Snake Ladder
A python snake and ladder game for machine coding.
Create a snake and ladder application. The application should take as input (from the command line or a file):
After taking these inputs, you should print all the moves in the form of the current player name followed by a random number between 1 to 6 denoting the die roll and the initial and final position based on the move.
Format:
When someone wins the game, print that the player won the game.
Format:
Please do these only if you’ve time left. You can write your code such that these could be accommodated without changing your code much.
100
2
vaibh dwan
12
4
87 23
43 11
98 56
76 36
4
12 45
40 60
73 91
62 81
vaibh rolled a 6 and moved from 0 to 6
dwan rolled a 10 and moved from 0 to 10
vaibh rolled a 10 and moved from 6 to 16
dwan rolled a 27 and moved from 10 to 37
vaibh rolled a 4 and moved from 16 to 20
dwan rolled a 2 and moved from 37 to 39
vaibh rolled a 1 and moved from 20 to 21
dwan rolled a 2 and moved from 39 to 41
vaibh rolled a 11 and moved from 21 to 32
dwan rolled a 4 and moved from 41 to 45
vaibh rolled a 5 and moved from 32 to 37
dwan rolled a 6 and moved from 45 to 51
vaibh rolled a 2 and moved from 37 to 39
dwan rolled a 7 and moved from 51 to 58
vaibh rolled a 1 and moved from 39 to 40
dwan rolled a 6 and moved from 58 to 64
vaibh rolled a 2 and moved from 40 to 42
dwan rolled a 4 and moved from 64 to 68
vaibh rolled a 2 and moved from 42 to 44
dwan rolled a 6 and moved from 68 to 74
vaibh rolled a 11 and moved from 44 to 55
dwan rolled a 6 and moved from 74 to 80
vaibh rolled a 3 and moved from 55 to 58
dwan rolled a 1 and moved from 80 to 81
vaibh rolled a 9 and moved from 58 to 67
dwan rolled a 2 and moved from 81 to 83
vaibh rolled a 3 and moved from 67 to 70
dwan rolled a 5 and moved from 83 to 88
vaibh rolled a 6 and moved from 70 to 76
dwan rolled a 4 and moved from 88 to 92
vaibh rolled a 2 and moved from 76 to 78
dwan rolled a 2 and moved from 92 to 94
vaibh rolled a 10 and moved from 78 to 88
dwan rolled a 9 and but can't move from 94
vaibh rolled a 11 and moved from 88 to 99
dwan rolled a 3 and moved from 94 to 97
vaibh rolled a 5 and but can't move from 99
dwan rolled a 1 and moved from 97 to 98
vaibh rolled a 4 and but can't move from 99
dwan rolled a 1 and moved from 98 to 99
vaibh rolled a 15 and but can't move from 99
dwan rolled a 7 and but can't move from 99
vaibh rolled a 3 and but can't move from 99
dwan rolled a 2 and but can't move from 99
vaibh rolled a 10 and but can't move from 99
dwan rolled a 11 and but can't move from 99
vaibh rolled a 5 and but can't move from 99
dwan rolled a 6 and but can't move from 99
vaibh rolled a 2 and but can't move from 99
dwan rolled a 11 and but can't move from 99
vaibh rolled a 10 and but can't move from 99
dwan rolled a 10 and but can't move from 99
vaibh rolled a 11 and but can't move from 99
dwan rolled a 8 and but can't move from 99
vaibh rolled a 5 and but can't move from 99
dwan rolled a 11 and but can't move from 99
vaibh rolled a 19 and but can't move from 99
dwan rolled a 10 and but can't move from 99
vaibh rolled a 15 and but can't move from 99
dwan rolled a 4 and but can't move from 99
vaibh rolled a 6 and but can't move from 99
dwan rolled a 1 and moved from 99 to 100
Game Over
This package was created with Cookiecutter_ and the vaibhavvikas/cookiecutter-pypackage
project template.
Cookiecutter: https://github.com/audreyr/cookiecutter
vaibhavvikas/cookiecutter-pypackage
: https://github.com/vaibhavvikas/cookiecutter-pypackage