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