BrainBuster is a fun and interactive pop quiz game where you answer five riddle-style questions. For each question, you will be given multiple options, and you need to select the correct answer to score points. It's a great way to test your brainpower!
- The game consists of 5 questions.
- Each question will have numbered options from which you need to select the correct answer.
- After selecting an option by entering the corresponding number, the game will let you know if your answer is correct.
- The game continues through all 5 questions.
- At the end of the game, your score is displayed based on how many correct answers you provided.
- All the questions in BrainBuster are riddles.
- The game will not stop after a wrong answer. It continues until all 5 questions are answered.
- Once all questions are answered, the game will display your total score based on the number of correct answers.
To compile and run the game, use the provided Makefile
with the following commands:
-
Compile for regular use:
make
This will compile the game and create an executable in the
build
directory calledBrainBuster
. -
Compile with strict error checking (production mode):
make prod
This command includes extra warnings and treats them as errors for stricter compilation.
-
Run the game:
make run
This will run the
BrainBuster
game executable after compiling it. -
Clean build artifacts:
make clean
This command will clean up the compiled files and remove the build directory.
- No external dependencies are required to compile or run this project.
- You only need a C compiler (such as GCC) installed on your system.
.
├── build # Directory for the compiled executable
│ └── BranBuster.exe # The game executable after compilation
├── lib # Library folder containing the core game logic
│ ├── questions.c # Question-related logic
│ ├── questions.h # Header file for questions
│ ├── utility.c # Utility functions used in the game
│ └── utility.h # Header file for utility functions
├── main.c # Main entry point for the game
├── Makefile # Makefile for compiling the project
└── .gitignore # Git ignore file
This project is a college assignment, and therefore, no contributions or pull requests are being accepted at this time.
This project is for academic purposes, so no formal license is provided.