Skip to content

vyaas/guessIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 

Repository files navigation

guessIt πŸŸ©πŸŸ¨β¬›

A CLI-based word guessing game inspired by Wordle β€” played entirely in your terminal, written in Python, no dependencies required.


What is guessIt?

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).


Quick Start

# 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

How to Play

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

Example turn

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>'): _

Project Structure

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

For Contributors

The design is fully documented before a single line of game code is written β€” read these first:

  1. plans/guessit-design.md β€” Game rules, data structures, module breakdown, UX flows.
  2. plans/guessit-diagrams.md β€” Mermaid diagrams: architecture, game flow, state machine, hint sequence.
  3. plans/implementation-guide.md β€” Phase-by-phase checklist, pseudocode, test cases, code style guidelines.

Ground rules

  • 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.md maps out all phases β€” pick one up and go.

Getting started in 60 seconds

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.


Requirements

  • Python 3.6 or newer
  • A terminal that supports ANSI escape codes (Linux, macOS, Windows Terminal, iTerm2, etc.)

License

MIT

About

A variant of wordle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors