Skip to content

Commit 9516d91

Browse files
Merge pull request #2993 from khanhkhanhlele/BoardGame-CLI/snakeLadder.py
Fix typos in BoardGame-CLI/snakeLadder.py
2 parents 73778df + 72ceeeb commit 9516d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BoardGame-CLI/snakeLadder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Taking players data
44
players = {} # stores players name their locations
55
isReady = {}
6-
current_loc = 1 # vaiable for iterating location
6+
current_loc = 1 # variable for iterating location
77

88
imp = True
99

@@ -23,7 +23,7 @@ def player_input():
2323
players[name] = current_loc
2424
isReady[name] = False
2525
x = False
26-
play() # play funtion call
26+
play() # play function call
2727

2828
else:
2929
print("Number of player cannot be zero")
@@ -88,7 +88,7 @@ def play():
8888
print(f"you are at position {players[i]}")
8989

9090
elif n == 2:
91-
players = {} # stores player ans their locations
91+
players = {} # stores player and their locations
9292
isReady = {}
9393
current_loc = 1 # reset starting location to 1
9494
player_input()

0 commit comments

Comments
 (0)