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()