https://github.com/aphelionz/cppquiz
Quiz yourself on ANY topic, from the command line.
https://github.com/aphelionz/cppquiz
cmake cplusplus cpp googletest gtest openai-api
Last synced: about 1 year ago
JSON representation
Quiz yourself on ANY topic, from the command line.
- Host: GitHub
- URL: https://github.com/aphelionz/cppquiz
- Owner: aphelionz
- Created: 2023-08-06T23:48:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-07T11:55:31.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T12:21:02.861Z (over 1 year ago)
- Topics: cmake, cplusplus, cpp, googletest, gtest, openai-api
- Language: C++
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPPQuiz
> Quiz yourself on ANY topic, from the command line.
I wanted to prove myself (and to the _WORLD_) that I could learn C++ after
avoiding it for almost 20 years. The thought process went something like this:
1. I should make a little C++ app to quiz me on C++
2. Hey, ChatGPT could generate quiz questions
3. Wait.. ChatGPT could generate quiz about **anything**.
Thus, the project was born and it goes something like this:
[ Insert GIF here ]
## Installation
**Pre-requisites: libcurl.4, soon to be libxml2**
This app uses CMake, mainly because of its GoogleTest integration.
```bash
$ git clone https://github.com/aphelionz/cppquiz && cd cppquiz
$ cmake -S . -B build
$ cmake --build build
```
## Usage
After following the steps above, obtain an [OpenAI API Key](https://platform.openai.com/account/api-keys), and then run:
`bash
$ OPENAI_API_KEY=yourkeyhere ./build/cppquiz
`
### Testing
Tests are build with GoogleTest and run via `ctest`.
## Contributing
Sure, why not!
## License
This code is licensed under the extremely permissive MIT license. Do what you want :)