Client server Mastermind Game Development for two players

Job ID: 37845241

Budget: ₹1,500 – ₹12,500 INR

Requirements:

Develop a simplified client-server Mastermind game for two players. The server is

built with Node.js, while Ionic/Angular is utilized as the frontend client.

In this game, the Node.js server acts as one player, serving as the code-maker

responsible for creating a secret code. The Ionic frontend client assumes the role

of the other player, functioning as the code-breaker, attempting to guess the code

within a specified number of turns.

Here are the rules for the game:

1. Setup:

• The code-maker (server) establishes a secret code consisting of a

sequence of 4 colored pegs.

• The colors of the pegs are selected from a predefined set of 3 colors:

Red, Green, and Blue.

• The code-breaker (client) is unaware of the secret code and must try

to guess it based on feedback from the code-maker.

2. Gameplay:

• On each turn, the code-breaker submits a guess by providing a

sequence of colored pegs to the code-maker.

• The code-maker then responds with feedback to the code-breaker,

presenting a series of key pegs.

• The key pegs provide information about the accuracy of the guess:

• A black key peg indicates that a guessed peg is the correct

color and in the correct position.

• A white key peg indicates that a guessed peg is the correct

color but in the wrong position.

• If no key pegs are provided, it implies that none of the

guessed pegs are correct.

• The code-breaker uses this feedback to make subsequent guesses,

refining their strategy with each turn.

3. Winning:

• The code-breaker wins the game if they manage to correctly guess

the secret code within 10 turns.

• However, if the code-breaker is unable to guess the code within the

specified number of turns, the code-maker wins the game.
Related categories: JavaScript Node.js Express JS AngularJS Ionic Framework