Skip to content

Johan621/Guess-The-code-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

🎯 Bulls and Cows - Number Guessing Game

Welcome to a fun little terminal game where you can try to guess a secret 4-digit code! Each round gives you clues to get closer to the right answer — it's a great test for logical skill.

🕹️ How to Play

  • The computer picks a random 4-digit number.
  • You have 10 tries to guess it.
  • After each guess, you'll get feedback:
  • Bulls = right number, right place.
  • Cows = right number, wrong place.

Example:

Secret: 1234
Your Guess: 1325
Result: 1 Bull, 2 Cows

▶️ Running the Game

Run the command in your terminal

python main.py

About

I have created an mini game which has a 4-digit secret code and the user has to guess the code in 10 attempts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages