Can you solve the code? Can you be the Mastermind?
Mastermind also known as code-breaker is a puzzle solving game. The aim of the game is to figure out the code within a specific amount of trials.
How to play:
The computer will generate a 4 color code (Duplicate colors are allowed).
After each attempt of getting the code you will be given feedback on how many colors and positions are correct but not mentioning which pegs specifically.
A black peg indicates correct color and position where as a white peg indicates only if color a is correct.