awacke1 commited on
Commit
dd7ed8a
β€’
1 Parent(s): 71c8f6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -57,6 +57,9 @@ def main():
57
  st.title("Player Cards and Monsters")
58
  st.write("πŸƒ Select a player card to reveal a monster and battle it! πŸ‰")
59
 
 
 
 
60
  st.sidebar.title("πŸƒ Select a Player Card")
61
  selected_player = st.sidebar.radio("Select a player:", list(PLAYERS.keys()))
62
  display_player_card(selected_player, PLAYERS[selected_player])
 
57
  st.title("Player Cards and Monsters")
58
  st.write("πŸƒ Select a player card to reveal a monster and battle it! πŸ‰")
59
 
60
+ if "players" not in st.session_state:
61
+ st.session_state.players = {}
62
+
63
  st.sidebar.title("πŸƒ Select a Player Card")
64
  selected_player = st.sidebar.radio("Select a player:", list(PLAYERS.keys()))
65
  display_player_card(selected_player, PLAYERS[selected_player])