FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

python-beginner-projects/projects/Mastermind at main · Mrinank-Bhowmick/python-beginner-projects · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

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.


Back | FazBrowse Home | New Git URL