A console-based AI quiz game inspired by Who Wants to Be a Millionaire.
Project description
Mr. Millionaire
Mr. Millionaire is a console-based quiz game inspired by Who Wants to Be a Millionaire?, featuring 15 challenging questions, prize progression, lifelines, and AI-generated questions via LiteLLM.
Features
-
✯ 15-question challenge with increasing prize money
-
🧠 AI-generated questions using LiteLLM integration
-
📀 Caches config, history, and environment in
~/.mr-millionaire -
🧠 Lifelines:
- 50-50: Eliminate two wrong options
- Phone a Friend: Ask an AI friend for help
-
📊 Game history and last played session tracking
-
🔧 Configurable via CLI or config manager
Installation
pip install mr-millionaire
Running & Configuring
mr-millionaire run
On running the game you'll be asked for 4 options.
Choose one from options:
[1] Play Game
[2] Clear Memory
[3] Configuration
[4] Show History
- [1] You can start playing the game. (for the first time it will ask you to setup LLM API Keys and MODEL name.)
- [2] Clears the memory of previously asked questions.
- [3] You can use this configuration manager to configure your LLM or difficulty of a game.
- [4] This will show previously won sheets.
Things to know
On first run, a cache/config folder will be created automatically on playing the game:
~/.mr-millionaire/
It will ask for the environemnt variable name & key.
# Example:
LLM Environment Variable Name : GROQ_API_KEY
LLM Environment Variable Value : <your_api_key>
LLM Model (eg: groq/gemma2-9b-it) : groq/gemma2-9b-it
Please go through 'https://docs.litellm.ai/docs/providers' before giving the llm environment values.
Configuration Options
Manage settings such as:
- Preferred LLM model
- Cache clearing
- History viewing
All settings and history are stored in ~/.mr-millionaire you can take a look into it for further debugging.
Tech Stack
- Python 3.12
- LiteLLM for AI-powered question generation
dotenvfor environment variable management- Local filesystem storage for config and history
Contributing
Pull requests are welcome! For major changes, please open an issue first.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mr_millionaire-0.1.0.tar.gz.
File metadata
- Download URL: mr_millionaire-0.1.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
699b48dc84459534ef3ea0031d01c3be9617fd343b5badf3eeab965b54b73747
|
|
| MD5 |
ff5dacb0ceccaab5324ace74c615d73a
|
|
| BLAKE2b-256 |
1da68fbd50316828c3df2e4e1bde1c1286ce4474c32b9343705f95b79f391a7a
|
File details
Details for the file mr_millionaire-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mr_millionaire-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e046556472c05055c01f260bd846bd3ad4f278442efada779a14e3446dc8f914
|
|
| MD5 |
5f439b5f183f565d2c1de65ff8da9753
|
|
| BLAKE2b-256 |
818fb1d5aa6dc20fc78857201d1fd0841791d14b88043248e49d79bde6ac71d2
|