https://github.com/oluwxtope/cordle
Wordle but with C. Done as part of a CS assignment
https://github.com/oluwxtope/cordle
c wordle
Last synced: about 2 months ago
JSON representation
Wordle but with C. Done as part of a CS assignment
- Host: GitHub
- URL: https://github.com/oluwxtope/cordle
- Owner: Oluwxtope
- Created: 2022-03-21T02:08:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T02:51:21.000Z (over 3 years ago)
- Last Synced: 2025-02-28T12:05:25.928Z (8 months ago)
- Topics: c, wordle
- Language: C
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cordle
Wordle, but with C!## Version
1.0
1.1: Added internet mode where you generate word by making API call (needs internet connection)

*An example of a Cordle game*## Setup
1. Navigate to the directory with Cordle source code files in terminal
2. To compile source code files, run `gcc wordlist.c wordle.c interactive.c -lcurl`
3. Enter `./a.out` in terminal to play Cordle
4. 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 :)## Instructions
1. Set up your game by picking your mode and difficulty level
2. Type in your 5-letter word guess
3. If your guess is correct, YOU WIN!
4. 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
5. 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## Future Updates
1. On hard using (a)pi mode, add verification of guesses by making spellcheck api call