Skip to content

Soburjon19/Mastermind_Java

Repository files navigation

Welcome to My Java Mastermind

Welcome to my projects Java Mastermind

Task

This is my GitHub

Description

Mastermind is a game composed of 9 pieces of different colors. A secret code is then composed of 4 distinct pieces.

The player has 10 attempts to find the secret code. After each input, the game indicates to the player the number of well placed pieces and the number of misplaced pieces.

Pieces will be '0' '1' '2' '3' '4' '5' '6' '7' '8'.

If the player finds the code, they win, and the game stops. A misplaced piece is a piece that is present in the secret code but is not in a good position.

You must read the player's input from the standard input.

Your program will also receive the following parameters: -c [CODE]: specifies the secret code. If no code is specified, a random code will be generated. -t [ATTEMPTS]: specifies the number of attempts; by default, the player has 10 attempts.

Installation

No need install anything, only need write in terminal

java My_Mastermind.java

and the game begins!

Releases

No releases published

Packages

No packages published