awacke1 commited on
Commit
24c60de
1 Parent(s): 199b3cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +86 -86
app.py CHANGED
@@ -68,6 +68,92 @@ with st.expander("Help / About 📚", expanded=False):
68
  ''')
69
 
70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
 
73
  # 9. Sidebar with UI controls to review and re-run prompts and continue responses
@@ -296,92 +382,6 @@ def load_score(key):
296
  return score_data["score"]
297
  return 0
298
 
299
- roleplaying_glossary = {
300
- "👨‍👩‍👧‍👦 Top Family Games": {
301
- "Big Easy Busket": ["New Orleans culture", "Band formation", "Song performance", "Location strategy", "Diversity celebration", "3-day gameplay"],
302
- "Bonanza": [
303
- "Bean planting and harvesting",
304
- "Bid and trade interaction",
305
- "Quirky card artwork",
306
- "Hand management",
307
- "Negotiation skills",
308
- "Set collecting",
309
- "Fun with large groups",
310
- "Laughter and enjoyment"
311
- ],
312
- "Love Letter": [
313
- "Valentine's Day theme",
314
- "Simple gameplay mechanics",
315
- "Card effects and strategy",
316
- "Deduction to find love letter's sender",
317
- "Take that elements",
318
- "Fun for celebrating love",
319
- "Engagement and elimination",
320
- "Quick and engaging play"
321
- ],
322
- "Japan to Japan": [
323
- "Global Tourism Resilience Day theme",
324
- "Travel and itinerary planning mechanics",
325
- "1 to 5 player game",
326
- "Game set in 2024 by AEG",
327
- "13 Rounds of strategic activity card placement",
328
- "Illustrations by Japan-based artists",
329
- "Efficiency in trip planning emphasized",
330
- "Resilience through thoughtful touring",
331
- "Inspired by real travel planning experiences"
332
- ],
333
- "Votes for Women": [
334
- "World Social Justice Day theme",
335
- "Card-driven game exploring American women's suffrage movement",
336
- "1 to 4 player game",
337
- "Released in 2022 by Fort Circle Games",
338
- "Covers 1848 to 1920 suffrage movement",
339
- "Includes competitive, cooperative, and solitary play modes",
340
- "Engages players in the ratification or rejection of the 19th Amendment",
341
- "Educational content on women's rights history",
342
- "Mechanics include area majority, dice rolling, cooperative play, and campaign-driven gameplay"
343
- ],
344
- },
345
- "📚 Traditional Word Games": {
346
- "Scrabble": ["Tile placement", "Word formation", "Point scoring"],
347
- "Boggle": ["Letter grid", "Timed word search", "Word length points"],
348
- "Crossword Puzzles": ["Clue solving", "Word filling", "Thematic puzzles"],
349
- "Banagrams": ["Tile shuffling", "Personal anagram puzzles", "Speed challenge"],
350
- "Hangman": ["Word guessing", "Letter guessing", "Limited attempts"],
351
- },
352
- "💡 Digital Word Games": {
353
- "Words With Friends": ["Digital Scrabble-like", "Online multiplayer", "Social interaction"],
354
- "Wordle": ["Daily word guessing", "Limited tries", "Shareable results"],
355
- "Letterpress": ["Competitive word search", "Territory control", "Strategic letter usage"],
356
- "Alphabear": ["Word formation", "Cute characters", "Puzzle strategy"],
357
- },
358
- "🎮 Game Design and Mechanics": {
359
- "Gameplay Dynamics": ["Word discovery", "Strategic placement", "Time pressure"],
360
- "Player Engagement": ["Daily challenges", "Leaderboards", "Community puzzles"],
361
- "Learning and Development": ["Vocabulary building", "Spelling practice", "Cognitive skills"],
362
- },
363
- "🌐 Online Platforms & Tools": {
364
- "Multiplayer Platforms": ["Real-time competition", "Asynchronous play", "Global matchmaking"],
365
- "Educational Tools": ["Learning modes", "Progress tracking", "Skill levels"],
366
- "Community Features": ["Forums", "Tips and tricks sharing", "Tournament organization"],
367
- },
368
- "🎖️ Competitive Scene": {
369
- "Scrabble Tournaments": ["Official rules", "National and international", "Professional rankings"],
370
- "Crossword Competitions": ["Speed solving", "Puzzle variety", "Prizes and recognition"],
371
- "Wordle Challenges": ["Streaks", "Perfect scores", "Community leaderboards"],
372
- },
373
- "📚 Lore & Background": {
374
- "History of Word Games": ["Evolution over time", "Cultural significance", "Famous games"],
375
- "Iconic Word Game Creators": ["Creators and designers", "Inspirational stories", "Game development"],
376
- "Word Games in Literature": ["Literary puzzles", "Wordplay in writing", "Famous examples"],
377
- },
378
- "🛠️ Resources & Development": {
379
- "Game Creation Tools": ["Word game generators", "Puzzle design software", "Community mods"],
380
- "Educational Resources": ["Vocabulary lists", "Word game strategies", "Learning methodologies"],
381
- "Digital Platforms": ["App development", "Online game hosting", "Social media integration"],
382
- },
383
-
384
- }
385
 
386
  def search_glossary(query):
387
  for category, terms in roleplaying_glossary.items():
 
68
  ''')
69
 
70
 
71
+ roleplaying_glossary = {
72
+ "👨‍👩‍👧‍👦 Top Family Games": {
73
+ "Big Easy Busket": ["New Orleans culture", "Band formation", "Song performance", "Location strategy", "Diversity celebration", "3-day gameplay"],
74
+ "Bonanza": [
75
+ "Bean planting and harvesting",
76
+ "Bid and trade interaction",
77
+ "Quirky card artwork",
78
+ "Hand management",
79
+ "Negotiation skills",
80
+ "Set collecting",
81
+ "Fun with large groups",
82
+ "Laughter and enjoyment"
83
+ ],
84
+ "Love Letter": [
85
+ "Valentine's Day theme",
86
+ "Simple gameplay mechanics",
87
+ "Card effects and strategy",
88
+ "Deduction to find love letter's sender",
89
+ "Take that elements",
90
+ "Fun for celebrating love",
91
+ "Engagement and elimination",
92
+ "Quick and engaging play"
93
+ ],
94
+ "The Novel Shogun": [
95
+ "Japanese History 1600s",
96
+ "Perrigrine Falcon",
97
+ "Yellow Nape Amazon Parrot",
98
+ "Bill Ackman on Investing",
99
+ "Portugal History 1600s",
100
+ "England History 1600s",
101
+ "Building a Board with Different Points of View",
102
+ "Canadian Pacific Railway",
103
+ "Merchant Ships and Pilots"
104
+ ],
105
+ "Votes for Women": [
106
+ "World Social Justice Day theme",
107
+ "Card-driven game exploring American women's suffrage movement",
108
+ "1 to 4 player game",
109
+ "Released in 2022 by Fort Circle Games",
110
+ "Covers 1848 to 1920 suffrage movement",
111
+ "Includes competitive, cooperative, and solitary play modes",
112
+ "Engages players in the ratification or rejection of the 19th Amendment",
113
+ "Educational content on women's rights history",
114
+ "Mechanics include area majority, dice rolling, cooperative play, and campaign-driven gameplay"
115
+ ],
116
+ },
117
+ "📚 Traditional Word Games": {
118
+ "Scrabble": ["Tile placement", "Word formation", "Point scoring"],
119
+ "Boggle": ["Letter grid", "Timed word search", "Word length points"],
120
+ "Crossword Puzzles": ["Clue solving", "Word filling", "Thematic puzzles"],
121
+ "Banagrams": ["Tile shuffling", "Personal anagram puzzles", "Speed challenge"],
122
+ "Hangman": ["Word guessing", "Letter guessing", "Limited attempts"],
123
+ },
124
+ "💡 Digital Word Games": {
125
+ "Words With Friends": ["Digital Scrabble-like", "Online multiplayer", "Social interaction"],
126
+ "Wordle": ["Daily word guessing", "Limited tries", "Shareable results"],
127
+ "Letterpress": ["Competitive word search", "Territory control", "Strategic letter usage"],
128
+ "Alphabear": ["Word formation", "Cute characters", "Puzzle strategy"],
129
+ },
130
+ "🎮 Game Design and Mechanics": {
131
+ "Gameplay Dynamics": ["Word discovery", "Strategic placement", "Time pressure"],
132
+ "Player Engagement": ["Daily challenges", "Leaderboards", "Community puzzles"],
133
+ "Learning and Development": ["Vocabulary building", "Spelling practice", "Cognitive skills"],
134
+ },
135
+ "🌐 Online Platforms & Tools": {
136
+ "Multiplayer Platforms": ["Real-time competition", "Asynchronous play", "Global matchmaking"],
137
+ "Educational Tools": ["Learning modes", "Progress tracking", "Skill levels"],
138
+ "Community Features": ["Forums", "Tips and tricks sharing", "Tournament organization"],
139
+ },
140
+ "🎖️ Competitive Scene": {
141
+ "Scrabble Tournaments": ["Official rules", "National and international", "Professional rankings"],
142
+ "Crossword Competitions": ["Speed solving", "Puzzle variety", "Prizes and recognition"],
143
+ "Wordle Challenges": ["Streaks", "Perfect scores", "Community leaderboards"],
144
+ },
145
+ "📚 Lore & Background": {
146
+ "History of Word Games": ["Evolution over time", "Cultural significance", "Famous games"],
147
+ "Iconic Word Game Creators": ["Creators and designers", "Inspirational stories", "Game development"],
148
+ "Word Games in Literature": ["Literary puzzles", "Wordplay in writing", "Famous examples"],
149
+ },
150
+ "🛠️ Resources & Development": {
151
+ "Game Creation Tools": ["Word game generators", "Puzzle design software", "Community mods"],
152
+ "Educational Resources": ["Vocabulary lists", "Word game strategies", "Learning methodologies"],
153
+ "Digital Platforms": ["App development", "Online game hosting", "Social media integration"],
154
+ },
155
+
156
+ }
157
 
158
 
159
  # 9. Sidebar with UI controls to review and re-run prompts and continue responses
 
382
  return score_data["score"]
383
  return 0
384
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
385
 
386
  def search_glossary(query):
387
  for category, terms in roleplaying_glossary.items():