Skip to content

Quiz yourself on ANY topic, from the command line.

Notifications You must be signed in to change notification settings

aphelionz/cppquiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

$ 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, 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 :)

About

Quiz yourself on ANY topic, from the command line.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages