Add AI-based Who Wants to Be a Millionaire game#129
Conversation
Implements a vanilla HTML/JS version of Who Wants to Be a Millionaire with AI-powered features: Features: - AI-generated questions with increasing difficulty using Pollinations Text API - Four AI-powered help lines: - Phone A Friend: AI simulates an expert friend's advice - Ask The Audience: Simulated audience poll with difficulty-based accuracy - 50:50: Removes two wrong answers - Ask The Host: AI host provides subtle hints - Classic game show UI with: - Money ladder showing progress and safe havens - Visual feedback for answers - Dramatic pauses for tension - Responsive design that works on mobile and desktop Technical Details: - Uses vanilla HTML/CSS/JS for simplicity and performance - Implements OOP principles with a MillionaireGame class - Uses Pollinations Text API for question generation and help lines - Includes error handling and fallbacks Closes # 128 Mentat precommits passed. Log: https://mentat.ai/log/0c03d342-3379-4243-86db-e4d5201f9601
There was a problem hiding this comment.
I've implemented the Who Wants to Be a Millionaire game using vanilla HTML/JS/CSS for simplicity and fast loading. Here's how to test the game:
- Open
millionaire-game/index.htmlin a web browser - Click "Start Game" to begin
- Each question is generated in real-time by the AI, with difficulty increasing as you progress
- You can use each help line once:
- 50:50: Removes two wrong answers
- Phone A Friend: AI simulates an expert friend giving advice
- Ask The Audience: Shows a simulated audience poll (more accurate for easier questions)
- Ask The Host: AI host provides a subtle hint
Technical notes:
- Questions are generated using the Pollinations Text API with increasing difficulty levels (0-9)
- Help lines use different system prompts to generate appropriate responses
- The game includes safe havens at $1,000 and $50,000
- UI includes dramatic pauses and visual feedback for a more engaging experience
Let me know if you'd like any adjustments to the implementation!
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!
You can change my review settings on my settings page.
|
🚀 PR Preview deployed! Preview URL: https://pollinations.github.io/hive/pr-129/ |
|
Hi @github-actions[bot]! You need to be added as a user to interact with me. Please ask @voodoohop to add you on the settings page. |
- Updated the CSS file path to use relative path - This fixes the CI test failure where the CSS file couldn't be found Mentat precommits passed. Log: https://mentat.ai/log/8f387db3-06f7-455e-9b68-3ad3bcd1b5f0
|
🚀 PR Preview deployed! Preview URL: https://pollinations.github.io/hive/pr-129/ |
|
Hi @github-actions[bot]! You need to be added as a user to interact with me. Please ask @voodoohop to add you on the settings page. |
|
@MentatBot Uncaught (in promise) TypeError: this.updateUI is not a function |
- Organized files into src directory - Updated paths in index.html to point to src directory - Removed non-existent updateUI call from startGame method Mentat precommits passed. Log: https://mentat.ai/log/4dffa4d4-1b70-455f-bfc8-3f6a3767145f
|
🚀 PR Preview deployed! Preview URL: https://pollinations.github.io/hive/pr-129/ |
|
Hi @github-actions[bot]! You need to be added as a user to interact with me. Please ask @voodoohop to add you on the settings page. |
|
script.js:60 Uncaught (in promise) TypeError: this.updateUI is not a function |
|
Hi @SteamPoweredCat! You need to be added as a user to interact with me. Please ask @voodoohop to add you on the settings page. |
|
Run npm test
Testing .mentat Testing ai-chat Testing graphics-editor Testing llm-feedback Testing millionaire-game Testing placeholder-generator added 273 packages, and audited 274 packages in 10s 108 packages are looking for funding found 0 vulnerabilities
vite v5.4.11 building for production... Testing pollinations-image-show added 314 packages, and audited 315 packages in 12s 118 packages are looking for funding found 0 vulnerabilities
vite v6.0.7 building for production... Testing tarot-reader added 324 packages, and audited 325 packages in 3s 155 packages are looking for funding found 0 vulnerabilities
vite v6.0.7 building for production... ❌ Some tests failed |
Implements a vanilla HTML/JS version of Who Wants to Be a Millionaire with AI-powered features:
Features:
Technical Details:
Closes #128
Precommit Logs: 97d505e ✅9797ed3 ✅d5cf000 ✅
🤖 See my steps and track the cost of the PR here ✨