Loading repository data…
Loading repository data…
ManalShehri / repository
A code breaker game, here is the game link
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Mastermind is a board game for two players. Simply, the first player is trying the guess the secret code given by the other player. The secret code is a sequence of colours, for example 4 colours. There are a number of attempts and with each attempt the player will receive a respond as a hint. There are two kinds of hints. First, right colour in the right position. Second, right colour but in the wrong position. Each hint will be represented as a colour. usually black and white. Black if both the colour and postion are right, on the other hand, white represents only a right colour.
In the project, the players will be the user and the computer. The user shall select the sequence of colours. The application shall check if the sequence is matched. The application shall show the respond as below:
First Dealing with the board as arrays:
Cmputer shall check the entries for each round, and compare it with the secret code:
Then, the computer shall check the conditon of the win:
After the game ends either by a win or loss, computer shall show the secret code.
$ git clone https://git.generalassemb.ly/manalshehri/Mastermind.git
$ cd Mastermind