Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

C MIT License

# 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

image

## 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.