wwtbam
v0.1.0
Published
CLI version of Who Wants to Be a Millionaire
Readme
Who Wants to Be a Millionaire (WWTBAM) - CLI Edition
A command-line version of the classic "Who Wants to Be a Millionaire?" quiz show. Answer 15 questions of increasing difficulty, use lifelines, and win virtual prizes!
📋 Table of Contents
📦 Installation
To install the CLI game globally via npm, run:
npm install -g wwtbam🚀 Usage
Once installed, start the game by running:
wwtbam🎮 Gameplay
You'll be guided through 15 questions divided into 3 tiers of difficulty:
- 🟢 5 Easy Questions
- 🟡 5 Medium Questions
- 🔴 5 Hard Questions
Answer correctly to climb the prize ladder:
$100 → $200 → $300 → ... → $1,000,000Controls
- Type
1–4to select an answer, then pressEnter. - Type
lto use a lifeline, then pressEnter. - Type
qto quit the game, then pressEnter. - Press
EnterorSpaceto start.
🛟 Lifelines
You have access to 3 lifelines — use them wisely:
- 50/50 – Removes two incorrect options.
- Ask the Audience – Shows poll results from the virtual audience.
- Phone a Friend – Get a guess from a (simulated) smart friend.
Each lifeline can be used once per game. Note: Lifelines are implemented with simple probability logic and decision trees for realism.
🗂️ Data
Questions used in the game are sourced from the Open Trivia Database, a free-to-use API for trivia questions.
📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
📧 Contact
For inquiries or more information, you can reach out to us at [email protected].
