100% C Code. Fetches data related to a genre from the DataMuse API and gives a random word (currently) from the JSON to the user to guess. Later versions will prefer words based on difficulty and relevance.
-
CURL
sudo apt-get install libcurl4-openssl-dev -
libjansson-dev
sudo apt-get install -y libjansson-dev
gcc hangman.c -o hangman -lcurl -ljansson
Download the linux executable hangman and run
chmod +x hangman to make it executable. Then run it with ./hangman
gcc hangman.c -o hangman2 -lcurl -ljansson
- loop and points
- set difficulty
- better api?
- offline support for specific topics only