Mastermind
Game Overview
Mastermind is a classic code-breaking game that challenges players to deduce a secret code using logic and deduction.

Purpose of the game
- Critical Thinking:
- Players must use deductive reasoning and logic to decode the pattern.
- Memory:
- Players must remember previous guesses and the feedback given to avoid repeating mistakes.
- Pattern Recognition:
- Mastermind encourages players to spot patterns in feedback and adapt their strategy accordingly.
Rewards Award System
- Once a player successfully cracks the secret code, they are awarded rewards based on their performance.

Reward will be displayed on the player's profile and can be used to track progress and achievements in the game.
Reference
The mastermind game to improve your skills
How to play this Game
Step 1: Setup
- The game consists of a code that is typically 4 pegs long, and each peg can be one of several different colors.
- The system selects a sequence of colored pegs and places them hidden from the code breaker.

Step 2: Guess the Code
- Players attempt to guess the secret code by placing colored pegs in a row.
- After each guess, the codemaker provides feedback using smaller pegs.

Step 3: Feedback
- A red peg means a correct color in the correct position.
- A white peg means a correct color in the wrong position.
- An empty peg means the wrong color.

Game Ends
- The codebreaker wins if they guess the code within the allowed number of turns.
- If they fail to guess the code, the codemaker wins.
