The .ipynb
notebook contains interactive elements. Please make sure your Python kernel and your notebook support interactivity.
Wordle is an English word game. You as a player, by default settings, has to guess a 5-letter English word within 6 attempts.
A guess has to be a 5-letter word. When a guess has been made, the game reveals to you how accurate your guess was, by marking your letters with colors:
- Grey letters are the letters that do not appear in the correct word.
- Yellow letters are the letters that do appear in the correct word, however are placed at the wrong positions.
- Green letters are the letters that do appear in the correct word, and are placed at the right positions.
The game ends when you guess the correct hidden word within 6 attempts.
The rule of the Wordle game still applies, however, this time, you face a computer that can also make guesses. As you play the game, after every guess you have made, the computer reveals to you the guess it has made. The catch is, the computer does not reveal to you the letters it has entered, but the game tells you how accurate the computer's guess is, using the colors.
You lose when you have not guessed the correct word and the computer has already finished the game with its correct guess. Just like you, however, the computer is not always winning, and might lose the game.
The .ipynb
notebook has been tested running with Python 3.7 and Python 3.10.2.
- Execute all cells.
- Leave the cursor on the left side's canvas (the user's field).
- Play the game.
- Re-run the last cell if you want to play again.