Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steelcityamir/wordle-in-c
An implementation of Wordle written in C.
https://github.com/steelcityamir/wordle-in-c
c-language game wordle
Last synced: about 1 month ago
JSON representation
An implementation of Wordle written in C.
- Host: GitHub
- URL: https://github.com/steelcityamir/wordle-in-c
- Owner: steelcityamir
- License: mit
- Created: 2024-08-11T18:31:54.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T14:08:29.000Z (3 months ago)
- Last Synced: 2024-09-30T01:03:37.171Z (about 2 months ago)
- Topics: c-language, game, wordle
- Language: C
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wordle in C
A command-line implementation of a Wordle-like game in C. The game prompts the user to guess a secret 5-letter word, providing color-coded feedback on each guess.## Features
- **Guess the Word**: The user has up to 6 attempts to guess the secret 5-letter word.
- **Color-Coded Feedback**:
- **Green Background**: Correct letter in the correct position.
- **Yellow Background**: Correct letter but in the wrong position.
- **Grey Background**: Incorrect letter.
- **Uppercase Display**: The secret word is displayed in uppercase if the user runs out of attempts.
- **File-Based Word List**: Reads a list of valid words from a file.## Prerequisites
- A C compiler (e.g., GCC)
- ANSI escape codes compatible terminal for color output## Installation
1. **Clone the Repository**:
```sh
git clone https://github.com/steelcity/wordle-in-c.git
cd wordle-in-c
```2. **Compile the Program**:
```sh
gcc -o wordle wordle.c
```## Usage
1. **Run the Program**:
```sh
./wordle
```2. **Follow the Prompts**:
- Enter your guesses when prompted.
- The program will provide color-coded feedback for each guess.## Example
## Contributing
Feel free to open issues or submit pull requests to improve the game.## License
This project is licensed under the MIT License. See the LICENSE file for details.