GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens, and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption in our documentation.
This Python program is a simple word-guessing game where the player tries to guess a randomly selected 5-letter word within six attempts. The game provides feedback after each guess to help the player improve their subsequent guesses.
## How the Game Works
- After each guess, the game displays in the user's guess:
-**Correct letters in the correct position** as **uppercase**.
-**Correct letters in the wrong position** as **lowercase**.
-**Incorrect letters** are displayed separately.
## Key Functions
-`read_file(path: str)`: Reads a file and returns all 5-letter words.
-`choix()`: Randomly selects a word from the wordlist.
-`normalisation_accents(mot: str)`: Replaces accented characters with non-accented equivalents.
-`verif()`: Prompts the user for a valid 5-letter word.
-`jeu()`: Manages the game loop, feedback, and attempts.
## How to Play
1. The game begins by selecting a random word from a lexicon.
2. The player has six attempts to guess the word using the feedback provided.
3. The game ends when the player either guesses the word, runs out of attempts, or quits.