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.

Example

Guess the 4 digit number: 1234
None of the numbers in your input match.
Enter your next choice of numbers: 5678
Not quite the number. But you did get  2  digit(s) correct!
Also these numbers in your input were correct.
X 6 X 8


Enter your next choice of numbers: 3698
You've become a Mastermind!
It took you only 3 tries.

How to run on localhost

python main.py

Dependencies

Standard library only.