Skip to content

VincentBarkman/MasterMind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌈 Mastermind Game

📖 Overview

Welcome to the Mastermind Game! This Python-based game is a fun and challenging way to test your logic and deduction skills. Players must guess the correct sequence of colors within a limited number of attempts. Each guess provides feedback to help you narrow down the correct color combination. Ready to put your problem-solving skills to the test?

🚀 Getting Started

Prerequisites

  • Python 3.x installed on your system.

Installation

Clone the repository to your local machine:

git clone https://github.com/vincentbarkman/mastermind.git

Navigate to the game directory:

cd mastermind

Run the game:

python main.py

🎮 How to Play

  1. When prompted, enter your guess for the color sequence. You can input colors as their first letter (e.g., R G B Y for Red, Green, Blue, Yellow).
  2. After each guess, you will receive feedback:
    • indicates a correct color in the correct position.
    • ? indicates a correct color but in the wrong position.
  3. Use the feedback from each guess to refine your next guess.
  4. Guess the correct sequence within the allowed number of attempts to win!

Available Colors:

  • R - Red
  • G - Green
  • B - Blue
  • Y - Yellow
  • M - Magenta
  • C - Cyan

🛠 Features

  • Randomly generated color sequences for endless play.
  • Colorful output in the terminal for an engaging gameplay experience.
  • Customizable game settings for varying levels of difficulty.

📝 Note

The game uses ANSI color codes to display colors in the terminal. Ensure your terminal supports ANSI colors to enjoy the

colorful output fully.

🤝 Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

⭐️ Support

Give a ⭐️ if this project helped you!

📝 License

Distributed under the GNU License. See LICENSE for more information.

📫 Contact

Vincent - @vincentbarkman My Website - Vincent Barkman

Project Link: https://github.com/yourgithubusername/mastermind


Happy Coding! 🎉

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages