https://github.com/czesctuklap/wordle
A simple console-based Wordle game where players guess a five-letter word. It features a Logo display and instructions for gameplay. The game randomly selects a word from a predefined list of 436 Polish words. Players input guesses, with feedback on letter accuracy indicated by color changes. Players have five attempts to guess the word.
https://github.com/czesctuklap/wordle
wordle wordle-game
Last synced: 3 months ago
JSON representation
A simple console-based Wordle game where players guess a five-letter word. It features a Logo display and instructions for gameplay. The game randomly selects a word from a predefined list of 436 Polish words. Players input guesses, with feedback on letter accuracy indicated by color changes. Players have five attempts to guess the word.
- Host: GitHub
- URL: https://github.com/czesctuklap/wordle
- Owner: czesctuklap
- Created: 2024-05-31T10:44:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-24T17:55:15.000Z (11 months ago)
- Last Synced: 2025-02-03T14:40:02.009Z (9 months ago)
- Topics: wordle, wordle-game
- Language: C++
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wordle
The project involved creating a program reminiscent of the game "Wordle". The goal of the game is to guess the word randomly selected by the program. If the user successfully guesses the word, they win, but if they fail to do so after five attempts, they lose.The program randomly selects a five-letter word from a database of 436 words. The user's task is to guess this word within five attempts. Users must input five-letter words or combinations of letters, which are then analyzed by the program and displayed according to the following rules:
- A letter is highlighted in green if it appears in the same position in the guessed word as it does in the selected word.
- A letter is highlighted in blue if it appears in the guessed word but not in the same position as in the selected word.
- A letter is not highlighted if it does not appear in the guessed word.After five attempts or if the user guesses the word correctly, the program displays a message:
- `"Congratulations! You guessed correctly!"`
- `"You lost! Better luck next time!"` followed by the randomly selected word.At the end of the game, the program prompts the user to play again by asking, `"Do you want to play again?"` and asks the user to choose the appropriate number `("1- Yes, 2- No")` depending on their decision. If the user chooses option one, the program displays `"Let's start!"` and a new word is randomly selected, restarting the game. If the user chooses option two, the program displays `"Goodbye!"` and closes after any key is pressed.
### Interface

