Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Snake&Ladders.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ def play():
p1=0
p2=0

print("Hey!! Lets play a game of Snakes and Ladders today.")
print("The ladders are as follows:")
print("Hey There!! Lets play a game of Snakes and Ladders ")
print("The Ladders are as follows:")
print(lad)
print()
print("The Snakes are as follows:")
Expand All @@ -17,8 +17,8 @@ def play():

print("To roll the die press 1 and to quit press 0")

p1n=input("Enter ypur name Player1: ")
p2n=input("Enter ypur name Player2: ")
p1n=input("Enter your name Player1: ")
p2n=input("Enter your name Player2: ")


while(p1n!=100 and p2n!=100):
Expand Down Expand Up @@ -54,9 +54,9 @@ def play():
break

if(p1==100):
print("Hurray",p1n," you won")
print("Yeahix",p1n," You Won")
if(p2==100):
print("Hurray",p2n," you won")
print("Yeahix",p2n," You Won")

def ladder(p):
f=0
Expand Down