awacke1 commited on
Commit
acb365d
·
1 Parent(s): 9def282

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -37,7 +37,9 @@ def play_game():
37
  st.write("Welcome to the dungeon, {}.".format(adventure.name))
38
 
39
  while adventure.victory==False:
40
- direction = st.selectbox("Choose your next move:", ["North", "South", "East", "West"])
 
 
41
  adventure.move(direction)
42
 
43
  if random.random() > 0.7:
 
37
  st.write("Welcome to the dungeon, {}.".format(adventure.name))
38
 
39
  while adventure.victory==False:
40
+ count=1
41
+ direction = st.selectbox("Choose your next move:", ["North", "South", "East", "West"], key = count)
42
+ count = count + 1
43
  adventure.move(direction)
44
 
45
  if random.random() > 0.7: