pyBegin / projects / mastermind
🎮

Mastermind

A console number-guessing game: the program picks a random 4-digit number and tells you how many digits you got right after each guess until you cr…

65 linesRunnable

Mastermind

A console number-guessing game: the program picks a random 4-digit number and tells you how many digits you got right after each guess until you crack it.

How to run

python main.py

Dependencies

Standard library only.

Pyodide-runnable

Yes — it is a pure-stdlib console game using only input(), print(), and random.