Weldor is a word-guessing game and huge-ly inspired from Wordle; The New York Times game where the user has to guess a secret word by suggesting letters. The game has three difficulty levels: easy, medium, and hard, with varying numbers of attempts to guess the word.
- Difficulty Levels: Easy, Medium, and Hard, with increasing difficulty and decreasing number of attempts.
- Word Guessing: User has to guess a secret word by suggesting letters.
- Feedback: The game provides feedback on the user's guess, indicating correct and incorrect letters.
- Autosave: The game autosaves the user's progress, allowing them to resume from where they left off.
- Leaderboard: The game updates a leaderboard with the user's score, including their username, difficulty level, and number of attempts.
The game is implemented in Python, using the following modules:
- random for generating random words
- json for saving and loading game data
- msvcrt for reading single characters without echoing to the console (Windows only)
- os for file operations and system commands
- Run the game by executing the weldor.py file.
- Choose a difficulty level and start a new game or load a saved game.
- Guess a letter, and the game will provide feedback on your guess.
- Keep guessing until you correctly guess the word or run out of attempts.
- The game will update the leaderboard with your score.
This is a basic implementation of the Weldor game, and there is room for improvement and expansion.