awacke1 commited on
Commit
7fe9dae
·
1 Parent(s): efb1d36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def play_game():
36
  adventure = Adventure(name)
37
  st.write("Welcome to the dungeon, {}.".format(adventure.name))
38
 
39
- while adventure.victory:
40
  direction = st.selectbox("Choose your next move:", ["North", "South", "East", "West"])
41
  adventure.move(direction)
42
 
 
36
  adventure = Adventure(name)
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