awacke1 commited on
Commit
3711164
·
1 Parent(s): 31cf3ef

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -134
README.md CHANGED
@@ -7,140 +7,6 @@ sdk: static
7
  pinned: false
8
  ---
9
 
10
- # Evening PM 12/20/2023
11
-
12
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/LwJLAQfgMTVn7cb_M19ZF.png)
13
-
14
-
15
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/CB_OaIBwZmgVUcVl3yh92.png)
16
-
17
-
18
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/8CDtRBABfEBP6qxyxyPMv.png)
19
-
20
-
21
- # Rev 2
22
- ```
23
- import streamlit as st
24
- import pandas as pd
25
- import random
26
- import time
27
-
28
- # Initialize session state
29
- if 'score' not in st.session_state:
30
- st.session_state['score'] = 0
31
- if 'leaderboard' not in st.session_state:
32
- st.session_state['leaderboard'] = pd.DataFrame(columns=['Player', 'Score'])
33
- if 'player_name' not in st.session_state:
34
- st.session_state['player_name'] = 'Player'
35
-
36
- # Function to update score
37
- def update_score():
38
- st.session_state['score'] += 10 # Update score
39
- st.session_state['leaderboard'] = st.session_state['leaderboard'].append({'Player': st.session_state['player_name'], 'Score': st.session_state['score']}, ignore_index=True)
40
-
41
- # Function to reset game
42
- def reset_game():
43
- st.session_state['score'] = 0
44
-
45
- # Main app layout
46
- st.title("Streamlit Multiplayer Game")
47
-
48
- # Player name input
49
- st.sidebar.title("Player Customization")
50
- st.session_state['player_name'] = st.sidebar.text_input("Enter your name", st.session_state['player_name'])
51
-
52
- # Game actions
53
- col1, col2 = st.columns(2)
54
- with col1:
55
- if st.button("Play"):
56
- update_score()
57
-
58
- with col2:
59
- if st.button("Reset"):
60
- reset_game()
61
-
62
- # Display score
63
- st.header("Your Score")
64
- st.write(f"Score: {st.session_state['score']}")
65
-
66
- # Leaderboard
67
- st.header("Leaderboard")
68
- st.table(st.session_state['leaderboard'].sort_values(by='Score', ascending=False))
69
-
70
- # Run some game logic here (this is just a placeholder for your game's logic)
71
- # ...
72
-
73
- # Ensure leaderboard updates
74
- st.experimental_rerun()
75
- ```
76
-
77
- # Maybe Coaching?
78
-
79
- ```
80
- Start over. 1) You dont remember the full code I gave you. Don't forget one line. 2) I want fun. Look up ten metaphors for fun and make in fun-ny funny. Try that since you got literary wit. Use all your wit. Now!!!
81
- ```
82
-
83
- # Rev 3:
84
-
85
- ```
86
- import streamlit as st
87
- import random
88
-
89
- # Initialize session state for scores and rewards
90
- if 'score' not in st.session_state:
91
- st.session_state['score'] = 0
92
- if 'rewards' not in st.session_state:
93
- st.session_state['rewards'] = []
94
-
95
- # Game mechanics
96
- def play_game():
97
- st.session_state['score'] += random.randint(1, 10) # Random score increment
98
- reward = random.choice(['Emoji', 'GIF', 'Virtual Candy', 'Wildcard', 'Music Note'])
99
- st.session_state['rewards'].append(reward)
100
-
101
- # Game UI
102
- st.title("🎉 The Ultimate Fun Game 🎉")
103
- st.sidebar.header("Game Controls")
104
- if st.sidebar.button("Play and Have Fun!"):
105
- play_game()
106
-
107
- st.header("Your Score: 😀")
108
- st.write(f"Score: {st.session_state['score']}")
109
- st.write(f"Rewards: {', '.join(st.session_state['rewards'])}")
110
-
111
- # Fun elements (placeholders for actual game features)
112
- st.subheader("🐒 Barrel of Monkeys: Mini-Game")
113
- # Mini-game logic goes here
114
-
115
- st.subheader("🍭 Kid in a Candy Store: Rewards Collection")
116
- # Rewards display and collection logic
117
-
118
- st.subheader("🎶 Merry as a Lark: Background Music")
119
- # Music player logic
120
-
121
- st.subheader("🃏 Jolly as a Joker: Wildcard Round")
122
- # Wildcard feature logic
123
-
124
- st.subheader("🎢 Roller Coaster: Exciting Levels")
125
- # Level progression logic
126
-
127
-
128
- ```
129
-
130
- *Sigh()
131
-
132
- Since this is not so good I choose to give it some gentle get you there AI coaching. I learned this from Will Smith and Chris Rock both of which can get you there.
133
-
134
- Pep Talk!
135
-
136
- All of a sudden code it writes is gold. Wow. Never would have imagined...
137
-
138
-
139
- ![image/png](https://cdn-uploads.huggingface.co/production/uploads/620630b603825909dcbeba35/xOe9thseMmy3AXOrx1ggo.png)
140
-
141
-
142
-
143
-
144
 
145
  # Original:
146
 
 
7
  pinned: false
8
  ---
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
 
11
  # Original:
12