awacke1 commited on
Commit
f51e7e6
Β·
1 Parent(s): 10f8eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -165,8 +165,9 @@ def main():
165
 
166
  if st.button("πŸ”₯ Battle!"):
167
  st.session_state.selected_player = selected_player
168
- # st.session_state.selected_monster = st.sidebar.selectbox("Select a monster:", list(MONSTERS.keys()))
169
- # monster = get_random_monster()
 
170
  st.session_state.selected_monster = get_random_monster()
171
  if monster:
172
  battle_player_card()
 
165
 
166
  if st.button("πŸ”₯ Battle!"):
167
  st.session_state.selected_player = selected_player
168
+ shuffle_monsters()
169
+ st.session_state.selected_monster = st.sidebar.selectbox("Select a monster:", list(MONSTERS.keys()))
170
+ monster = get_random_monster()
171
  st.session_state.selected_monster = get_random_monster()
172
  if monster:
173
  battle_player_card()