Skip to content

Code Breaker is a terminal-based number guessing game where players try to guess a secret 4-digit code within 10 attempts. After each guess, the game provides feedback in terms of bulls (correct digit & position) and cows (correct digit, wrong position). Simple, fun, and great for practicing logic!

Notifications You must be signed in to change notification settings

PriyanshuJajal/CodeBreakerGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Code Breaker Game 🎯

A fun terminal-based number guessing game using Python, where the player must guess a secret 4-digit code within a limited number of attempts.
The game also provides feedback in terms of bulls and cows after each guess.

🧠 Game Rules

  • The computer randomly generates a 4-digit secret code.
  • Digits range from 0 to 9, and duplicates are allowed.
  • You have 10 attempts to guess the correct code.
  • After each guess, you'll receive feedback:
    • Bulls: Correct digits in the correct position.
    • Cows: Correct digits but in the wrong position.

📦 Features

  1. Input validation
  2. Customizable code length and number of attempts
  3. Clear feedback system

🗣️ Feedback

If you find any bugs, have any feature suggestions, feel free to open an Issue or reach out to me.
Your feedback makes this project better! 😊

About

Code Breaker is a terminal-based number guessing game where players try to guess a secret 4-digit code within 10 attempts. After each guess, the game provides feedback in terms of bulls (correct digit & position) and cows (correct digit, wrong position). Simple, fun, and great for practicing logic!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages