awacke1 commited on
Commit
03e44d2
ยท
verified ยท
1 Parent(s): 3759075

Create app.py

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