Spaces:
Sleeping
Sleeping
File size: 2,797 Bytes
03e44d2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
import streamlit as st
import gradio as gr
import pandas as pd
# Streamlit UI setup
def main():
st.title("Pink Puppies Adventure ๐ธ๐ถ")
st.markdown("""
## Step-by-Step Rules and Concepts ๐
""")
# Getting Started Table
st.markdown("""
### 1. Getting Started ๐
""")
st.table(pd.DataFrame({
"Step": ["Open App", "Choose Puppy", "Begin Adventure"],
"Description": ["Launch the app from your device.", "Pick your favorite pink puppy.", "Start exploring the world of Pink Puppies."],
"Emoji": ["๐ฑ", "๐ถ", "๐"]
}))
# Interaction Table
st.markdown("""
### 2. Interaction ๐
""")
st.table(pd.DataFrame({
"Interaction Type": ["Buttons", "Sliders", "Dropdowns", "Data Tables"],
"Elements Used": ["Begin adventure, interact with items.", "Adjust puppy's energy levels.", "Select type of adventure.", "Display scores and achievements."],
"Emoji": ["๐พ", "๐๏ธ", "๐", "๐"]
}))
# Dramatic Situations
st.markdown("""
## Dramatic Situations ๐ญ
""")
st.markdown("""
### Situation 1: The Lost Puppy ๐พ๐
- Use the map to navigate.
- Collect clues from the surroundings.
- Find the hidden path to reunite with your puppy.
""")
st.markdown("""
### Situation 2: The Magic Potion ๐งโโ๏ธโจ
- Collect ingredients from various locations.
- Mix them in the potion lab.
- Use the potion to upgrade abilities.
""")
st.markdown("""
### Situation 3: The Great Puppy Race ๐๐ถ
- Train your puppy using the slider to manage energy.
- Choose the right path in the race.
- Use speed boosts available in dropdowns.
""")
st.markdown("""
## How to Play ๐ฎ
""")
st.markdown("""
### Actions
""")
st.table(pd.DataFrame({
"Action": ["Starting Adventure", "Finding Clues", "Creating Potion", "Participating in Race"],
"Instructions": ["Click the 'Begin Adventure' button.", "Tap on the map areas to collect clues.", "Select ingredients and mix using tools.", "Use sliders and dropdowns to control race."],
"Emoji": ["๐", "๐", "๐งช", "๐"]
}))
# User Interface Elements
if st.button('Begin Adventure ๐พ'):
st.write('Adventure Started! ๐')
st.slider('Puppy Energy Level ๐๏ธ', 0, 100, 50)
adventure_type = st.selectbox(
'Select Adventure Type ๐',
['Lost Puppy ๐พ๐', 'Magic Potion ๐งโโ๏ธโจ', 'Great Puppy Race ๐๐ถ']
)
data = pd.DataFrame({
'Scores': [95, 67, 84],
'Achievements': ['First Clue ๐', 'Potion Ingredient ๐งช', 'Race Completed ๐']
})
st.dataframe(data)
if __name__ == '__main__':
main() |