A CLI-based word guessing game inspired by Wordle β played entirely in your terminal, written in Python, no dependencies required.
Guess a secret 6-letter word in up to 6 attempts. After each guess, every letter is colour-coded:
| Colour | Meaning |
|---|---|
| π© Green | Correct letter, correct position |
| π¨ Yellow | Letter is in the word, wrong position |
| β¬ Gray | Letter is not in the word |
You also start with 6 hints β type hint <1-6> to reveal any letter position for free (costs one hint).
# Clone the repo
git clone git@github.com:vyaas/guessIt.git
cd guessIt
# Run the game (Python 3.6+ required, no pip installs needed)
python guessit.py| Input | Action |
|---|---|
CASTLE |
Guess the word (6 letters, case-insensitive) |
hint 3 or h 3 |
Reveal the letter at position 3 |
help or ? |
Show in-game instructions |
quit or q |
Exit the game |
Attempt 2/6 π‘ Hints: 5
S T U P I D β U is yellow (in word, wrong spot)
[ ][ ][ ][ ][ ][ ]
Enter your guess (or 'hint <1-6>'): _
guessIt/
βββ guessit.py # Main game β single self-contained file
βββ words.txt # Word list (20 six-letter words, easy to extend)
βββ README.md # This file
βββ plans/ # Design docs & architecture (for contributors)
βββ guessit-design.md
βββ guessit-diagrams.md
βββ implementation-guide.md
The design is fully documented before a single line of game code is written β read these first:
plans/guessit-design.mdβ Game rules, data structures, module breakdown, UX flows.plans/guessit-diagrams.mdβ Mermaid diagrams: architecture, game flow, state machine, hint sequence.plans/implementation-guide.mdβ Phase-by-phase checklist, pseudocode, test cases, code style guidelines.
- Python 3.6+, standard library only (no third-party packages).
- CLI first β no GUI, no web server. Keep it terminal-native to avoid debugging overhead.
- Everything lives in two files:
guessit.py+words.txt. Easy to share, easy to run. - Follow PEP 8 and add docstrings to every function.
- The implementation checklist in
plans/implementation-guide.mdmaps out all phases β pick one up and go.
git clone git@github.com:vyaas/guessIt.git
cd guessIt
# Read plans/implementation-guide.md, pick a phase, open guessit.py, start coding.No virtual environment, no pip install, no build step. Just Python.
- Python 3.6 or newer
- A terminal that supports ANSI escape codes (Linux, macOS, Windows Terminal, iTerm2, etc.)
MIT