awacke1 commited on
Commit
1e9baf6
·
1 Parent(s): f13dac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -25
app.py CHANGED
@@ -5,6 +5,8 @@ import streamlit as st
5
  import pandas as pd
6
  import random
7
  import base64
 
 
8
 
9
 
10
  st.markdown("""
@@ -28,10 +30,7 @@ st.markdown("""
28
 
29
  """)
30
 
31
- import streamlit as st
32
- import random
33
- import csv
34
- import os
35
 
36
  # Define the player card attributes
37
  player_cards = {
@@ -166,27 +165,6 @@ def play_game(num_games):
166
  st.download_button("game_state.csv", csv_data, file_name="game_state.csv", mime="text/csv")
167
  st.write("*Note: Downloaded files are saved in your browser's default download location*")
168
 
169
- # Define the Streamlit app
170
- def app():
171
- st.set_page_config(page_title="Health Care Game", page_icon="🏥", layout="wide")
172
- st.title("Health Care Game")
173
- st.sidebar.write("# Game Settings")
174
- num_games = st.sidebar.slider("Number of games to play", 1, 100, 10)
175
- st.sidebar.write("# Player Cards")
176
- for player, attributes in player_cards.items():
177
- st.sidebar.write(f"## {player}")
178
- st.sidebar.write(f"Sketch: {attributes['sketch']}")
179
- st.sidebar.write(f"Character: {attributes['character']}")
180
- st.sidebar.write(f"Player Board: {attributes['player_board']}")
181
- st.sidebar.write(f"Action Dice: {attributes['action_dice']}")
182
- st.sidebar.write(f"Health Tokens: {attributes['health_tokens']}")
183
- st.sidebar.write(f"Coin: {attributes['coin']}")
184
- st.sidebar.write(f"Battle Tokens: {attributes['battle_tokens']}")
185
- st.sidebar.write(f"Score: {attributes['score']}")
186
- # Display a button to start the game
187
- if st.sidebar.button("Start Game"):
188
- # Play the game
189
- play_game(num_games)
190
 
191
 
192
  def showPressRelease():
 
5
  import pandas as pd
6
  import random
7
  import base64
8
+ import csv
9
+ import os
10
 
11
 
12
  st.markdown("""
 
30
 
31
  """)
32
 
33
+
 
 
 
34
 
35
  # Define the player card attributes
36
  player_cards = {
 
165
  st.download_button("game_state.csv", csv_data, file_name="game_state.csv", mime="text/csv")
166
  st.write("*Note: Downloaded files are saved in your browser's default download location*")
167
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
 
169
 
170
  def showPressRelease():