← AI
🎱
Smarter Magic 8-Ball
A Magic 8-Ball that actually reads your question's keywords before pretending to know the future.
🟢 EasyDifficulty
1-2 hoursTime
Python, JavaScript, TypeScriptLanguages
What you're building
You're building a Magic 8-Ball with a twist: instead of always picking a totally random answer, it skims your question for keywords like 'love', 'money', or 'job' and pulls from a themed answer pool that actually fits the topic. It's still fundamentally random and not real fortune-telling, but the topic-awareness makes it feel eerily more 'in tune' with what you asked.
What you'll unlock 🔓
You'll need
- Basic JavaScript
- A code editor
- A browser
🗺️ Build roadmap
01 Build the 8-ball UI and shake button
→
02 Create themed answer pools by topic
→
03 Detect keywords in the typed question
→
04 Pick a random answer from the matching pool
→
05 Add a shake/flip animation before revealing
→
06 Add a question history log
🔒
Log in to start building
Your first project is free -- create an account to unlock it.
Log in Sign up free