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?
- Python 3.x installed on your system.
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
- 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).
- After each guess, you will receive feedback:
✓
indicates a correct color in the correct position.?
indicates a correct color but in the wrong position.
- Use the feedback from each guess to refine your next guess.
- Guess the correct sequence within the allowed number of attempts to win!
- R - Red
- G - Green
- B - Blue
- Y - Yellow
- M - Magenta
- C - Cyan
- 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.
The game uses ANSI color codes to display colors in the terminal. Ensure your terminal supports ANSI colors to enjoy the
colorful output fully.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Give a ⭐️ if this project helped you!
Distributed under the GNU License. See LICENSE
for more information.
Vincent - @vincentbarkman My Website - Vincent Barkman
Project Link: https://github.com/yourgithubusername/mastermind
Happy Coding! 🎉