Spaces:
Sleeping
Sleeping
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() |