PyWordle is a command-line implementation of the popular word-guessing game, featuring:
- 🎮 Classic Wordle gameplay with color-coded feedback
- 🌍 Multi-language support (English, Simplified/Traditional Chinese)
- ⚙️ Configurable word length for different difficulty levels
- 🎨 Colorful terminal interface with responsive design
- 🕹️ Intuitive keyboard controls
- Install requirements:
pip install -r requirements.txt- Run the game:
python main.py- Game controls:
- ↑/↓ arrows: Navigate menus
- Enter: Confirm selection
- Esc: Go back/cancel
- e: Enter text editing mode
- g: Show current word (debug mode only)
Edit config.txt to customize:
MIN_WORD_LENGTH = 3
DEBUG = False
LANGUAGE = en_us # Options: en_us, zh_cn, zh_twEnable special features with:
python main.py --debugBest viewed with monospace font
> Player
┌───┐┌───┐┌───┐┌───┐┌───┐
1 │ W ││ O ││ R ││ D ││ S │
└───┘└───┘└───┘└───┘└───┘
┌───┐┌───┐┌───┐┌───┐┌───┐
2 │ ││ ││ ││ ││ │
└───┘└───┘└───┘└───┘└───┘
┌───┐┌───┐┌───┐┌───┐┌───┐
3 │ ││ ││ ││ ││ │
└───┘└───┘└───┘└───┘└───┘
┌───┐┌───┐┌───┐┌───┐┌───┐
4 │ ││ ││ ││ ││ │
└───┘└───┘└───┘└───┘└───┘
┌───┐┌───┐┌───┐┌───┐┌───┐
5 │ ││ ││ ││ ││ │
└───┘└───┘└───┘└───┘└───┘
┌───┐┌───┐┌───┐┌───┐┌───┐
6 │ ││ ││ ││ ││ │
└───┘└───┘└───┘└───┘└───┘
[INFO] The game begins, please enter a word with a length of 5.
Press esc to stop editing, enter to confirm.
┌Input────────────────────────────────────────────────────────┐
│ │
└─────────────────────────────────────────────────────────────┘
Enjoy guessing words directly in your terminal!