Trivia Trials is an interactive trivia game where players answer progressively challenging questions, use lifelines strategically, and aim to achieve the highest possible score. With engaging gameplay mechanics and dynamic question loading, Trivia Trials promises an exciting experience for all trivia enthusiasts.
-
Challenging Levels:
- 15 levels of increasing difficulty.
- Players earn or lose points based on their answers.
-
Dynamic Question Loading:
- Questions are loaded from external files for scalability and customization.
- Randomized question order for a unique experience every time.
-
Lifelines:
- 4 lifelines available, each usable once per game:
- Audience Poll
- 50:50
- Double Dip
- Skip the Question
- 4 lifelines available, each usable once per game:
-
Score Management:
- Points earned vary by level difficulty.
- Post-level 10 gameplay transitions to a high-stakes "do or die" mode.
-
Win Conditions:
- Earn as many points as possible.
- Successfully answer all 15 questions to win the grand prize.
-
Clone or download the repository to your local machine.
git clone https://github.com/smit4372/trivia-trials.git
-
Compile the game using any C++ compiler (e.g.,
g++
):g++ -o trivia_trials trivia_trials.cpp
-
Run the compiled program:
./trivia_trials
-
Follow the on-screen instructions to play the game.
Trivia Trials/
├── README.md # Game documentation
├── src/
│ └── main.cpp # Main game source code
├── questions/ # Folder containing question files
│ ├── question1.txt
│ ├── question2.txt
│ └── ...
├── build/
├── .gitattributes
└── .gitignore
questions/
: Contains individual text files for each question. Each file includes:- The question text.
- Four answer choices.
- The correct answer.
Example: question1.txt
What is the capital of France?
Paris
London
Berlin
Madrid
Paris
- Programming Language: C++
- Randomization: Used for shuffling questions and lifelines.
- File Handling: To dynamically load questions.
- Add more lifelines for varied gameplay.
- Implement a graphical user interface (GUI).
- Include categories or difficulty levels for questions.
- Multiplayer mode.
- Online leaderboard to track high scores.
Contributions are welcome! If you'd like to contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature-name
- Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
Smit Desai
GitHub Profile
LinkedIn Profile
Feel free to reach out with any questions or feedback!
- Inspired by trivia games like Who Wants to Be a Millionaire?.
- Thanks to everyone who provided feedback and support during development.