Wordle, but with C!
1.0
1.1: Added internet mode where you generate word by making API call (needs internet connection)
- Navigate to the directory with Cordle source code files in terminal
- To compile source code files, run
gcc wordlist.c wordle.c interactive.c -lcurl
- Enter
./a.out
in terminal to play Cordle - P.S. Program doesn't run as is because of missing API key which I have hidden! To run, subscribe to Random Words API on rapidapi.com and insert your API key in line 100 of
interactive.c
. Or contact me :)
-
Set up your game by picking your mode and difficulty level
-
Type in your 5-letter word guess
-
If your guess is correct, YOU WIN!
-
If your guess is incorrect, Cordle shows you the result of your guess:
[1] great => ..eA.
AbcdEf.hijklmnopq.s.uvwxyzThis means the word doesn't contain the letters 'g', 'r', or 't'. It contains the letters 'e' and 'a' but 'e' is in an incorrect spot hence the lowercase while 'a' is in the correct spots which is why it's capitalized in the result of your guess. The alphabet string below shows which letters are for sure in the word by capitalizing them. The lowercase letters may be in the word, while the dots represent letters not present in the word at all
-
In hard mode, you cannot use letters not in the word in subsequent guesses. You also can't use a letter in the wrong spot in subsequent guesses
- On hard using (a)pi mode, add verification of guesses by making spellcheck api call