Skip to content

Commit

Permalink
just exploring how to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
LingRan0317 authored Oct 5, 2022
1 parent a2fc6fe commit 4f02a49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BoardGame-CLI/snakeLadder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def player_input():
global current_loc
global isReady

y = True
while y:
x = True
while x:
player_num = int(input("Enter the number of players: "))
if player_num > 0:
for i in range(player_num):
name = input(f"Enter player {i+1} name: ")
players[name] = current_loc
isReady[name] = False
y = False
x = False
play() # play funtion call

else:
Expand Down

0 comments on commit 4f02a49

Please sign in to comment.