Magic 8 Ball is a simple, entertaining C++ console application that simulates the classic toy used for fortune-telling or seeking advice. Upon running, it randomly selects one of 20 predetermined responses, imitating the experience of asking a question and receiving an answer from a Magic 8 Ball.
- Random Response Generation: Each execution gives one of 20 possible responses, offering a variety of answers similar to those of a physical Magic 8 Ball.
- Simple and User-Friendly: The application is easy to run and use, providing clear and concise responses.
- C++ Compiler (GCC recommended)
- Standard C++ library
- Clone the Repository: Clone or download the repository to your local machine.
- Compile the Program:
- Navigate to the directory containing the
Magic8Ball.cpp
file. - Compile the program using a C++ compiler, e.g.,
g++ Magic8Ball.cpp -o Magic8Ball
.
- Navigate to the directory containing the
- Run the Program: Execute the compiled program, e.g.,
./Magic8Ball
.
- Run the program.
- The Magic 8 Ball will automatically provide a random response.
This project is open-source and available under the MIT License.
This project was inspired by the traditional Magic 8 Ball toy. Special thanks to everyone who contributed to the development and testing of this application.
For any queries or suggestions, please contact Joecode22 on Github.